py5coding on Nostr: This week's #py5 release added a new color mode based on matplotlib's colormaps, ...
This week's #py5 release added a new color mode based on matplotlib's colormaps, adding to the existing RGB and HSB modes:
```python
size(999,999)
color_mode(CMAP,mpl.colormaps['jet'])
stroke_weight(99)
for _ in range(999):
stroke(random(),99)
point(random(999), random(999))
```
#Genuary #processing #Genuary2
Published at
2024-01-03 00:15:38Event JSON
{
"id": "93d9c1b26b519dccc53424682a4c9d92ab61677ac60f26bc11c15f452a3fb780",
"pubkey": "84ee38e8a3fd005f79ad54ce399885a0a0493f3345fcfcdd92353994b25bc89b",
"created_at": 1704240938,
"kind": 1,
"tags": [
[
"t",
"py5"
],
[
"t",
"GENUARY"
],
[
"t",
"processing"
],
[
"t",
"genuary2"
],
[
"proxy",
"https://fosstodon.org/users/py5coding/statuses/111689134128273424",
"activitypub"
]
],
"content": "This week's #py5 release added a new color mode based on matplotlib's colormaps, adding to the existing RGB and HSB modes:\n\n```python\nsize(999,999)\ncolor_mode(CMAP,mpl.colormaps['jet'])\nstroke_weight(99)\nfor _ in range(999):\n stroke(random(),99)\n point(random(999), random(999))\n```\n\n#Genuary #processing #Genuary2",
"sig": "95c6abda97d0984d4622d4e08991c439d3d547d3723cb3edff748111488f12b57de11d9b34187581e9acbba3d4082cadb1559905b3731100c0408484e9e5ac07"
}