Thursday, March 7, 2024

Create a Texture Online

 I have been trying to do this online pattern generator using shading language.

Enter a formula:


Red:   

Green: 

Blue: 

Example formulas to enter: 
 (set1)
 r = (0xff)*(x%2);
 g = (0xff)*(y%2); 
 b = (0xff);//*(x^y); 

(set2) 
 r = (int)((0xff)*Math.sin(10*x*Math.PI/180));
 g = (0xff);
 b = (0xff);