Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/lines/dist/lines.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/lines/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ registerPaint(

const sqrtArea = Math.floor(Math.sqrt(Math.pow(w, 2) + Math.pow(h, 2)))
const saveArea = sqrtArea * 2
const colorLines = colors.split(',').map(color => color)
const colorLines = colors.split(',').map(color => color.trim())
const maxColors = colorLines.length
let indexColor = 0

Expand Down