HOME | DD

LaurenceFinston — Color Flow Test Nr. 1

Published: 2023-08-17 15:36:53 +0000 UTC; Views: 499; Favourites: 5; Downloads: 0
Redirect to original
Description

Color Flow Test Nr. 1 

Copyright (C) Laurence Finston 


A PDF version of this animation and the GNU 3DLDF and TeX source code are available here: laurence-finston.de/#Color_Fl... 


For each of the colors red, green, blue, cyan, magenta, yellow ten circles are filled. In MetaPost, the values for the RGB (red-green-blue) elements in a `color' object lie between 0 and 1, e.g., (0, 0, 0) would appear as black, (1, 1, 1) would appear as white and (1, 0, 0) would appear as red. 


It's a bit more complicated than that, because MetaPost has three different kinds of colors: RGB, CMYK (cyan-magenta-yellow-black) and greyscale. 


3DLDF has just one kind of color object, but it has all of the "color parts" for the three kinds of MetaPost colors. The interpreter recognizes what kind of color is meant. 3DLDF doesn't process colors in any way, it just passes color values on to MetaPost. 


As I found out when making this video, PNG doesn't support CMYK colors. I originally used them for cyan, magenta and yellow. There was no error, they just weren't displayed in Flowblade. I therefore changed them so that cyan, for example, is defined as (0, 1, 1) instead of (1, 0, 0, 0) in the 3DLDF code. 


In the sets of circles, the values go from .1 to by increments of .1, i.e., .1, .2, .3 ... 1. I tried using increments of .05 and generating more circles. This imroves the illusion of "flow", but the lower values are too dark. I would need to change the way they're chosen so that the higher values are reached more quickly. It might also be better not to use the lowest values at all. 


This is just a simple test; I plan to use this technique in combination with others, such as the sine waves.

Related content
Comments: 0