Jan, 2008  All Rights Reserved
ST Coloration
04/22, 2008
 


  Pattern 1

low_boundry = 0.3, high_boundry = 0.7
if ( s >low_boundry && s < high_boundry && t >low_boundry && t < high_boundry )
 
  Pattern 2

low_boundry = 0.3, high_boundry = 0.7
if ( s >low_boundry && s < high_boundry || t >low_boundry && t < high_boundry )
 
  Pattern 3

if (s+t >= 1)
 
 

Pattern 4

if ( s*s+t*t <=1)

 
 

Pattern 5

if ( (s-0.5)*(s-0.5)+ (t-0.5)*(t-0.5) <=0.05)

 
 

Pattern 6

if ( (s-0.5)*(s-0.5)+ (t-0.5)*(t-0.5) <=0.1 && (s-0.6)*(s-0.6)+ (t-0.5)*(t-0.5) >= 0.1

 
..............................................................................................................
 
My Pattern
04/22, 2008
 
 


if ( s*s+(t-0.1)*(t-0.1) <= 0.55 && s*s + (t-0.38)*(t-1) >= 0.18)
surfcolor = color (0.235-s*t*0.5,0.235-s*t*0.5,0.0);//dark green on top

else if ( s*s+(t-0.35)*(t-0.1) <= 0.85 && s*s + t*t >= 0.6)
surfcolor = color (0.835+ 0.2*s, 0.8 + 0.2*s, 0.5+0.2*s);//light green in center

else if ( (s-0.8)*(s-0.2)+(t-0.5)*t >= 0.1 && s*s +t*t <= 0.55)
surfcolor = color ( 1+0.35*t,0.5, 0.15*t); //orange on the left

else if ( (s-0.1)*(s-0.2)+(t-0.5)*t >= 0.5 && s*s +t*t <= 0.98)
surfcolor = color ( 0, 0.5-0.35*t, 0.15-t); //green

else if ( (s-0.9)*(s-0.8)+(t-0.5)*t >= 0.05 && (s-0.7)*(s-0.8) +t*t <= 0.5 && s<0.7)
surfcolor = color (0.6+s*t,0.0,0.0); //dark red in center

else if ( s*s +t*t <= 0.4)
surfcolor = color (1,0,0); //bright red on the left

else if ( s*s +t*t >= 1.3 )
surfcolor = color (1.2-s*t*0.6,0,0); //red in the right bottom

else if ( s*s +(t-0.3)*(t-0.1) >= 0.98 )
surfcolor = color (0.235-s*t*0.5,0.235-s*t*0.5,0.0); //black stripe

else surfcolor = back_tint;


 
..............................................................................................................
 
My Pattern2
04/27, 2008
 

When I tried to animate my pattern, the first problem I met is my pattern is not writen in proper format. All color areas are defined by curves, not circles. This makes it very difficult for me to set any variable to control these area's size or location.

Thus I redo another pattern with all areas defineded by circle or correct format.

Get code here.

..............................................................................................................