JujuAdams/Clean-Shapes

CleanConvex wonkiness

bakumoe opened this issue · 2 comments

Here's another thing I noticed

  • Border thickness is super inconsistent
  • Shape can break

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();

Whoops, fatfingered that on mobile!

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 ¯\_(ツ)_/¯