Skip to content

Commit

Permalink
More distinct Biome and NNH pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-000 committed Sep 9, 2023
1 parent ce02a7e commit f72f774
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions examples/canvas-gradient-pattern.js
Expand Up @@ -20,14 +20,14 @@ function createPattern(color1, color2) {
const width = 16 * pixelRatio;
const height = width;
const gradient = context.createLinearGradient(0, 0, width, height);
gradient.addColorStop(0.1, color1);
gradient.addColorStop(0.2, color2);
gradient.addColorStop(0.3, color2);
gradient.addColorStop(0.4, color1);
gradient.addColorStop(0.6, color1);
gradient.addColorStop(0.7, color2);
gradient.addColorStop(0.8, color2);
gradient.addColorStop(0.9, color1);
gradient.addColorStop(2 / 16, color1);
gradient.addColorStop(3 / 16, color2);
gradient.addColorStop(5 / 16, color2);
gradient.addColorStop(6 / 16, color1);
gradient.addColorStop(10 / 16, color1);
gradient.addColorStop(11 / 16, color2);
gradient.addColorStop(13 / 16, color2);
gradient.addColorStop(14 / 16, color1);
canvas.width = Math.max(width, 1);
canvas.height = Math.max(height, 1);
context.fillStyle = gradient;
Expand Down

0 comments on commit f72f774

Please sign in to comment.