Skip to content

General template for fast low-level pixel-by-pixel rendering.

Notifications You must be signed in to change notification settings

ZERDICORP/renderer_2d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

renderer_2d 🎆

General template for fast low-level pixel-by-pixel rendering.

Introduction ✌️

This project is a template for rendering 2D graphics.

The main feature is fast pixel-by-pixel rendering, which is great for creating simulations.

Small Guide ✔️

🔸 Change the color of a pixel

All you need to know to use this template productively is how graphics are rendered.
Essentially, we have a one-dimensional integer array containing the RGB values of each pixel.
Accordingly, by changing the values of this array, we change the color of the pixel on the screen.
Below is a small example (really small).

pixelBuffer[0] = 0x000000; // BLACK

Conclusion 🐥

You have questions?

Well, I think in the Main.java file you can easily figure out what's what thanks to the comments.

See you later!

About

General template for fast low-level pixel-by-pixel rendering.

Topics

Resources

Stars

Watchers

Forks

Languages