Clean-Shapes icon indicating copy to clipboard operation
Clean-Shapes copied to clipboard

CleanConvex wonkiness

Open bakumoe opened this issue 3 years ago • 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();

bakumoe avatar Apr 01 '21 18:04 bakumoe