Skip to content

Commit

Permalink
Example script fixes
Browse files Browse the repository at this point in the history
[CI BUILD]
  • Loading branch information
andybak committed Jan 6, 2024
1 parent 440716d commit 44cac39
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Parameters = {
yWave={label="Y Waveform Type", type="int", min=0, max=15, default=1},
yFrequency={label="Y Frequency", type="float", min=0.01, max=4, default=1},
yPhase={label="Y Phase", type="float", min=0.01, max=1, default=0.5},
radius={label="Radius", type="float", min=0.01, max=2, default=1},
scale={label="Scale", type="float", min=0.01, max=2, default=1},
}

function Main()
Expand All @@ -26,7 +26,7 @@ function Main()
y = sampleWave(Parameters.yWave, t + (Parameters.yPhase * 0.5), Parameters.yFrequency, yPrevious)
xPrevious = x
yPrevious = y
position = Vector3:New(-x * Parameters.radius, y * Parameters.radius, 0)
position = Vector3:New(-x * Parameters.scale, y * Parameters.scale, 0)
return Transform:New(position)

end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function Main()
end

if Brush.triggerPressedThisFrame then
symmetryHueShift.generate(#points, initialHsv)
symmetryHueShift.generate(points.count, initialHsv)
end

return Symmetry:PathToPolar(points)
Expand All @@ -47,7 +47,8 @@ function calculateRectangleExteriorPoints()

local x = -width / 2 + j * Parameters.spacing
local y = -height / 2 + i * Parameters.spacing
points:Insert(Vector2.New(x, y):OnZ())
local pos = Vector2.New(x, y):OnZ()
points:Insert(Transform:New(pos))

end
end
Expand Down

0 comments on commit 44cac39

Please sign in to comment.