using framebuffer to draw shapes can be all well & good, but its not great.
we look at a new class called 'Graphics' to draw shapes on screen.
we then create a function to hold in our graphics & lastly call it into our render function to draw on screen.
this will help in our future tutorials & projects.
'Graphics' also can apply to drawing images as well.
link to my custom snippets:
https://gist.github.com/lewislepton/808d6d2bef1c1c71cf76
source code:
https://github.com/lewislepton/kha-tutorial-series
SUPPORT ON PATREON FROM AS LITTLE AS $1:
https://patreon.com/lewislepton
intro & outro music is from this EP:
https://lewislepton.bandcamp.com/album/coat-noise-ep
like, share & subscribe to stay up to date.
https://lewislepton.com
https://patreon.com/lewislepton
https://twitter.com/lewislepton
https://facebook.com/lewislepton
https://lewislepton.bandcamp.com
https://soundcloud.com/lewislepton
https://github.com/lewislepton
p.s.
i have cut down on the amount of shifting colors with the graphics in the videos now. they still shift, just not as epileptic inducing. enjoy ;)