Parametric equations

From Legacy Roblox Wiki
Revision as of 21:26, 27 December 2008 by >Mindraker (Butterfly curve (2D))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
How to make a butterfly in 3 seconds
for i = 1,100, .1 do


x=math.sin(i)*(math.exp(1)^math.cos(i)-2*math.cos(4*i)-(math.sin(i/12))^5)
y=math.cos(i)*(math.exp(1)^math.cos(i)-2*math.cos(4*i)-(math.sin(i/12))^5)

p = Instance.new("Part")
p.CFrame = CFrame.new(Vector3.new(100*x, 100*y, 100))
p.Size = Vector3.new(8,8,8)
p.Anchored = true
p.BottomSurface = "Smooth"
p.TopSurface = "Smooth"
p.Parent = game.Workspace
p.BrickColor = BrickColor.new(26) -- change this to whatever color you want

end