gamercade-io / gamercade_console

A Neo-Retro Fantasy Console. Make WASM-powered, networked multiplayer games.
https://gamercade.io
Apache License 2.0
170 stars 10 forks source link

Implement Draw Circle Filled function. #5

Closed RobDavenport closed 2 years ago

RobDavenport commented 2 years ago

We currently have a draw circle function which is generally correct (minus some bounds issues pending #4). However we don't have a draw circle filled function to match that of the rectangle ones.

I except this can be done quite easily by using the same logic to find the outer pixels, and then calling horizontal line repeatedly until the circle is completely filled.