A little experiment with filled ellipse, supporting any rotation angle (the tricky part!).
The code is moderately fast as it finds the root of the ellipse equation to get the segment extent for each row.
Car headlight example use:
I think this small bit of code gives other programmers who write game making languages a good example of what we writers want.
Absolute and complete control of our code including mastery over formulae, math, tables, arrays, and objects whether they are global or local to the program.
Well done, Freds72. I can see this being used in a "flashlight" type of haunted house exploration game.
[Please log in to post a comment]