Skip to content

Commit

Permalink
updated: line logic
Browse files Browse the repository at this point in the history
  • Loading branch information
xanderjl committed Mar 3, 2023
1 parent 19109e1 commit 86511e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/sketches/horizontal-lines.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const HorizontalLines: NextPage = () => {
const dimensions: number[] = getDimensions('A4')
const padding: number[] = [40]
const background: ColorValue = [255, 253, 252]
const numLines = 200
const numLines = 250
const seed = convertSeed('Breath of the weath')

const draw: Draw = p5 => {
Expand All @@ -23,8 +23,8 @@ const HorizontalLines: NextPage = () => {
Array.from({ length: numLines }, (_, i) => {
const x1 = margin
const x2 =
margin + p5.map(p5.noise(i), 0, 1, p5.width * 0.66, p5.noise(p5.width))
const x3 = x2 + p5.map(p5.noise(i), 0, 1, p5.width * 0.05, p5.width * 0.5)
margin + p5.map(p5.noise(i), 0, 1, p5.width * 0.25, p5.width * 0.45)
const x3 = p5.map(p5.noise(i), 0, 1, p5.width * 0.55, p5.width * 0.75)
const x4 = p5.width - margin
const y = margin + ((p5.height - margin * 2) / numLines) * (i + 1)

Expand Down

1 comment on commit 86511e6

@vercel
Copy link

@vercel vercel bot commented on 86511e6 Mar 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

p5 – ./

p5-git-main-xanderjl.vercel.app
p5-lovat.vercel.app
p5.xandydandy.com
p5-xanderjl.vercel.app

Please sign in to comment.