From 02c2cdae12817dbcc3bbf36aa5b54f166a4796dc Mon Sep 17 00:00:00 2001 From: Quinton Ashley Date: Wed, 19 Jun 2024 16:14:53 -0500 Subject: [PATCH] update readme --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e315341..b77789d 100644 --- a/README.md +++ b/README.md @@ -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