Rhythm fishes

p5.pattern

The source code for the p5.pattern library is available on github.

PTN.noise

PTN.noise(0.5)

PTN.noiseGrad

PTN.noiseGrad(0.4)

PTN.stripe

PTN.stripe(t / int(random(6, 12)))

PTN.stripeCircle

PTN.stripeCircle(t / int(random(6, 12)))

PTN.stripePolygon

PTN.stripePolygon(int(random(3, 7)), int(random(6, 12)))

PTN.stripeRadial

PTN.stripeRadial(TAU / int(random(6, 30)))

PTN.wave

PTN.wave(t / int(random(1, 3)), t / int(random(10, 20)), t / 5, t / 10)

PTN.dot

PTN.dot(t / 10, (t / 10) * random(0.2, 1))

PTN.checked

PTN.checked(t / int(random(5, 20)), t / int(random(5, 20)))

PTN.cross

PTN.cross(t / int(random(10, 20)), t / int(random(20, 40)))

PTN.triangle

PTN.triangle(t / int(random(5, 20)), t / int(random(5, 20)))

--

--

--

I love programming.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Moving Elements To The End of an Array

What is New in Angular 10?

9 Major Problems in the Work of a Programmer

Redux Immutable Update Patterns

Creating custom components with Vuetify — Inheriting props/events/slots in Composition API

04/27 — Finish Frontend Layouts

How to Become a Web Developer — Oversimplified Roadmap

Pass by value and pass by reference [JavaScript]

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
adakoda

adakoda

I love programming.

More from Medium

Extending what an NFT is with the right tools

GAMYFI NFT GAMES WITH EARNINGS A Non-Fungible Token (NFT) is a blockchain-based digital…

As a digital artist, should I mint NFTs?

Why Discord? Why Not?