Log In  

Cart #ellipsefill-0 | 2019-08-20 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
18

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:

P#66809 2019-08-20 20:47

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.

P#66824 2019-08-21 04:03

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-19 06:07:48 | 0.014s | Q:12