Test Devlog for HTML code syntax
UTAS KIT207 Portfolio » Devlog
Here's the test
(via Tim Mathias' Copy As HTML plugin)
Code Snippet
- if (y1 > y2)
- {
- int tx = x1, ty = y1;
- x1 = x2;
- y1 = y2;
- x2 = tx;
- y2 = ty;
- deltax *= -1;
- deltay *= -1;
- }
- int error = deltay / 2;
- int x = x1;
- int adjustment = 1;
- if (deltax < 0)
- {
- adjustment = -1;
- deltax *= -1;
- }
- for (int y = y1; y <= y2; y++)
- {
- texture.SetPixel(x, y, c);
- error = error - deltax;
- if (error < 0)
- {
- x += adjustment;
- error += deltay;
- }
- }
UTAS KIT207 Portfolio
Status | In development |
Category | Other |
Author | ChimeraMusic |
More posts
- Tutorial 5Aug 22, 2022
- Self Study 5Aug 16, 2022
- Self-study 4 + Tutorial 3Aug 09, 2022
- Self-Study 3 + Tutorial 2Aug 02, 2022
- Self-study 2 + Tutorial 1Jul 26, 2022
- Week 2 modelling studyJul 19, 2022
Leave a comment
Log in with itch.io to leave a comment.