JujuAdams / Clean-Shapes

Antialiased primitives library for GameMaker Studio 2023.1
MIT License
38 stars 6 forks source link

CleanConvex wonkiness #23

Open bakumoe opened 3 years ago

bakumoe commented 3 years ago

Here's another thing I noticed

Higher rounding and border thickness worsen the effects

CleanConvex wonky2

Code for the above gif:

var _x = 100, _y = 200, _size = 50, _offset = sin(current_time / 500);
CleanConvex([_x - _size, _y - _size,    _x + _size + (_offset * _size), _y - _size - (_offset * _size),    _x + _size, _y + _size,    _x - _size, _y + _size]).Blend(c_orange, 1.0).Border(10, c_red, 1.0).Rounding(0).Draw();
_x += _size * 3;
CleanConvex([_x - _size, _y - _size,    _x + _size + (_offset * _size), _y - _size - (_offset * _size),    _x + _size, _y + _size,    _x - _size, _y + _size]).Blend(c_orange, 1.0).Border(30, c_red, 1.0).Rounding(0).Draw();
_x += _size * 3;
CleanConvex([_x - _size, _y - _size,    _x + _size + (_offset * _size), _y - _size - (_offset * _size),    _x + _size, _y + _size,    _x - _size, _y + _size]).Blend(c_orange, 1.0).Border(10, c_red, 1.0).Rounding(30).Draw();
_x += _size * 3;
CleanConvex([_x - _size, _y - _size,    _x + _size + (_offset * _size), _y - _size - (_offset * _size),    _x + _size, _y + _size,    _x - _size, _y + _size]).Blend(c_orange, 1.0).Border(30, c_red, 1.0).Rounding(30).Draw();
JujuAdams commented 3 years ago

Whoops, fatfingered that on mobile!

JujuAdams commented 3 years ago

mmyep, dunno what's causing this, nor do I have the willingness to try to figure it out. Maybe it'll get fixed one day ¯\_(ツ)_/¯