Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
quinton-ashley committed Jun 19, 2024
1 parent c18bfcd commit 02c2cda
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -307,10 +307,11 @@ Features added by @LingDong-:

## Porting from p5.js

- `createCanvas` must be run before any functions that edit the canvas are called.
- `createCanvas` must be run before any rendering functions are called. If users don't do it before the draw loop starts, then q5 will run `createCanvas(100, 100)` automatically.
- `color` function only accepts numeric input, hex, and simple named colors. It doesn't parse strings like `color('hsl(160, 100%, 50%)')`.
- `colorMode` function only accepts "rgb", "srgb", or "oklch" because the other formats p5 still supports like hsv are obsolete.
- `noise` function's default noise algorithm is true perlin noise, p5's noise is called "blocky" noise using it requires loading the src/q5-noisier.js module.
- `fill` and `stroke` can accept any CSS color string.
- `colorMode` function only accepts "rgb", "srgb", or "oklch" because other formats that p5 still supports like hsv are obsolete.
- `noise` function's default noise algorithm is perlin noise. p5's default noise is called "blocky" noise in q5 and using it requires loading the src/q5-noisier.js module.

## Size Comparison

Expand Down

0 comments on commit 02c2cda

Please sign in to comment.