Skip to content

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