在Mathematica中使用图形进行渐变填充 [英] Gradient Fill using Graphics in Mathematica

查看:648
本文介绍了在Mathematica中使用图形进行渐变填充的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 Graphics []

$ b中使用 Rectangle [] 创建以下内容
$ b

Polygon ,您可以

   Graphics [{EdgeForm [Black],
Polygon [{{0,0},{3,0},{3,1},{0,1}},
VertexColors - > {白色,红色,红色,白色}]}]


How could I create the following using Rectangle[] in Graphics[]?

解决方案

Using Polygon, you can

Graphics[{EdgeForm[Black], 
  Polygon[{{0, 0}, {3, 0}, {3, 1}, {0, 1}}, 
   VertexColors -> {White, Red, Red, White}]}]

这篇关于在Mathematica中使用图形进行渐变填充的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆