History

a fix

Sigrid Haflínudóttir committed 6 years ago

Commit 522dad71 parent 2834a401 file · +2 −2Browse files

Unified · Split

glitch.c+2−2
@@ -71,9 +71,9 @@ redraw(void) · 70 unmodified lines
7171 x = k - oldk;
7272 oldk = k;
7373 diff += MIN(1.0, x/10);
74− float w = 1.0 + sin(0.001*j+0.1*diff);
74+ float w = 1.0 + sin(0.1*diff);
7575 double RGB[3];
76− hsluv2rgb(MAX(0.0, MIN(360.0, 180.0*w)), 50.0+30*w, MIN(100.0, 25+40*w), &RGB[0], &RGB[1], &RGB[2]);
76+ hsluv2rgb(MAX(0.0, MIN(360.0, 180.0*(w * fabs(cos(0.01*j))))), 50.0+30*w, MIN(100.0, 25+40*w), &RGB[0], &RGB[1], &RGB[2]);
7777 k = x*3;
7878 static double oRGB[3];
7979 for(i = 0; i < 3; i++)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t