aseprite/data/scripts/examples/cosy.lua
David Capello 37be418a5a Added some of the new script functions (NewSprite, LoadSprite,
SaveSprite, SetSprite, NewLayer)
2007-12-13 15:55:01 +00:00

19 lines
431 B
Lua

-- ASE - Allegro Sprite Editor
-- Copyright (C) 2001-2005, 2007 by David A. Capello
local x, y, points
NewSprite(IMAGE_RGB, 128, 128)
ClearMask()
points = ""
for y = 0, 128 do
x = 64 + cos(PI*y/128) * 63
points = points .. " " .. x .. "," .. y
end
ToolTrace("pencil " .. points)
ToolTrace("floodfill 127,127")
ConvolutionMatrixRGBA("smooth-5x5")
ColorCurveRGBA({ 0,0, 128-32,16, 128+32,256-16, 255,255 })