Skip to content

Commit

Permalink
Change flowsnake styling
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-jts committed Nov 13, 2024
1 parent 765f9f5 commit 4ced431
Show file tree
Hide file tree
Showing 2 changed files with 2,405 additions and 2,405 deletions.
4 changes: 2 additions & 2 deletions demo/fractal/flowsnake-curve.sql
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ seg AS (
FROM pts WHERE xp <> x OR yp <> y
),
svg AS ( SELECT geom, svgShape( geom,
style => svgStyle('stroke', svgHSL( 100*(id/ 1024.0 ), 80, 50))
style => svgStyle('stroke', svgHSL( 200 + 110*(id % 401/ 401.0 ), 80, 50))
) AS svg
FROM seg
)
SELECT svgDoc( array_agg( svg ),
viewbox => svgViewbox( ST_Expand( ST_Extent(geom), 5 )),
style => svgStyle('stroke-width', '0.3', 'stroke-linecap', 'round' ) )
style => svgStyle('stroke-width', '0.7', 'stroke-linecap', 'round' ) )
FROM svg;
Loading

0 comments on commit 4ced431

Please sign in to comment.