plasm-language / pyplasm

http://www.dia.uniroma3.it/~paoluzzi/plasm502/
Other
54 stars 24 forks source link

Feature/color hex #25

Closed menxit closed 6 years ago

menxit commented 6 years ago

I think it could be useful an HEX function in order to use HEX code instead of RGB format.

For example to create a red cube, it could be possible to write:

c = HEX("#FF0000")(CUBOID([1,1,1]))

Instead of:

c = COLOR(Color4f([1.0, 0.0, 0.0, 1.0]))