How can I create the following using Rectangle[] in Graphics[] ?
Rectangle[]
Graphics[]
Using Polygon , you can
Polygon
Graphics[{EdgeForm[Black], Polygon[{{0, 0}, {3, 0}, {3, 1}, {0, 1}}, VertexColors -> {White, Red, Red, White}]}]
also:
Graphics[Raster[{Range[100]/100}, ColorFunction -> (Blend[{White, Red}, #] &)], AspectRatio -> .3, Frame -> True, FrameTicks -> None]
Source: https://habr.com/ru/post/901553/More articles:java: how to get screen sizes from a Graphics object - javaActionController :: TestCase vs ActiveSupport :: TestCase; What is the difference? - ruby-on-railsAnonymous and Anonymous Functions Lua - functionJQuery Mobile view function - jqueryC ++ Syntax Syntax - c ++Mimic.htaccess or some other type of password protection with webrick - securityjava, how to make a convenient percentage output from a number of float - javaHTTP Authentication Ruby Webrick - authenticationRuby on Rails 3 error: Devise :: LdapAdapter.get_ldap_param undefined - ruby | fooobar.comInstalling a primary key in a very large database - sql-serverAll Articles