Clean-Shapes
Clean-Shapes copied to clipboard
Antialiased primitives library for GameMaker Studio 2023.1
Fixes #36 .
The .Thickness(pixels) function makes CleanLine much thinner than requested.
Also tested on v2023.6; rendered results are broken for the test project. Using latest runtime, built with Xcode 15.1. Target device is iPhone SE 2nd generation, with iOS 16.1.2. Attached...
Offset value for borders with positive numbers moving outwards and negative numbers moving inwards of the shape. ![image](https://github.com/JujuAdams/Clean-Shapes/assets/5013378/4a3c6722-2c5a-469f-b31f-c4aaba7d3f39) example: `.Border(thickness, offset, color, alpha)`
Minor note on CleanShapes, I have to do this to get a border-only ellipse: ``` CleanEllipse(focused_node.x, focused_node.y, 120, 80) .Blend(c_black, 0) .Border(5, focused_color, 1) .Draw(); ``` If you remove that...
Here's another thing I noticed - Border thickness is super inconsistent - Shape can break Higher rounding and border thickness worsen the effects ![CleanConvex wonky2](https://user-images.githubusercontent.com/1330101/113335110-ccdbe180-9324-11eb-90a8-69ed6299fd5c.gif) Code for the above gif:...
Inspired by https://twitter.com/lucknknock/status/1370321166984962052?s=20