Pixel Separated Rotation - ( SDL C++ )
Channel:
Subscribers:
403
Published on ● Video Link: https://www.youtube.com/watch?v=p97TX7kDND8
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....
Other Videos By Tuniveza
2015-08-03 | [INTP] Piano Improvisation |
2015-08-02 | [ INTP ] - [ Unaligned Collisions & Humanity ] |
2015-07-31 | [INTP] - I don't really like people |
2015-07-25 | Binary should be "1+ and -1" not "0 and 1" |
2015-07-25 | Sitticus pubescens Jumping Spider [Olympus OMD EM-5] |
2015-07-04 | Energy Fascination Through Humanity |
2015-07-03 | Blender3D 2.75 Cloth Simulation Modifier |
2015-07-02 | Olympus OM-D EM-5 : Showing Off My Books HD |
2015-07-02 | Olympus OM-D EM-5 Preview with "audio " - 2015 |
2015-05-27 | Chemicals which are very bad! |
2014-09-09 | Pixel Separated Rotation - ( SDL C++ ) |
2014-08-25 | Paper Director V1 - Smooth Textures |
2014-07-16 | Playing Bejeweled 2 Deluxe |
Tags:
C++
Matrix
Rotation
Affine
Transformation
Pixels
red
gradient
sin
cos
M_PI
180
Radians
SDL
WIN32
win32
rose
Linear Algebra (Field Of Study)