User Tools

Site Tools


en:color

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
en:color [2020/11/22 21:05]
admin
en:color [2020/11/22 21:16]
admin
Line 27: Line 27:
     * b - blue 0 = off to 255 = full on     * b - blue 0 = off to 255 = full on
   - the [[rgb|rgb]] function passing it 3 or 4 numbers from 0-255,   - the [[rgb|rgb]] function passing it 3 or 4 numbers from 0-255,
-  - or using an svg color definition string.+  - or using an svg color name as a string [[https://www.w3.org/TR/SVG11/types.html#ColorKeywords|as defined by the W3C]].
  
  
Line 53: Line 53:
 color rgb(255,160,160) color rgb(255,160,160)
 circle 100,100,25 circle 100,100,25
 +
 +penwidth 5
 +color "firebrick","plum"
 +rect 150,150,100,100
 +
 +color "papayawhip", "clear"
 +rect 175,175,100,100
 </code> </code>
 Will draw a grey rectangle with a green circle filled with red and then a pink circle inside it.\\ Will draw a grey rectangle with a green circle filled with red and then a pink circle inside it.\\
en/color.txt ยท Last modified: 2020/11/22 21:26 by admin