Rotating a square shape of pixels with a lovely red gradient for experimental purposes.
"I don't have the source code for this anymore sorry"
Used:
SDL 1.2
C++
Rotation :
unsigned int nx = x * cos(test_value * M_PI/180) - y * sin(test_value * M_PI/180);
unsigned int ny = x * sin(test_value * M_PI/180) + y * cos(test_value * M_PI/180);
^^ that's apparently a matrix in c++ lol....