Color wheel: Difference between revisions
Content added Content deleted
(Added Processing task) |
m (→{{header|Processing_Python}}: removed blank line) |
||
Line 424: | Line 424: | ||
=={{header|Processing_Python}}== |
=={{header|Processing_Python}}== |
||
<lang python> |
<lang python>size(300, 300) |
||
size(300, 300) |
|||
background(0) |
background(0) |
||
radius = min(width, height) / 2.0 |
radius = min(width, height) / 2.0 |
||
Line 438: | Line 437: | ||
colorMode(HSB) |
colorMode(HSB) |
||
c = color(int(h * 255), int(s * 255), 255) |
c = color(int(h * 255), int(s * 255), 255) |
||
set(x, y, c) # note that set() can be used as Processing or as Python set() |
set(x, y, c) # note that set() can be used as Processing or as Python set()</lang> |
||
</lang> |
|||
=={{header|Python}}== |
=={{header|Python}}== |