Skip to content

Commit

Permalink
NS
Browse files Browse the repository at this point in the history
  • Loading branch information
jgaffuri committed Sep 26, 2023
1 parent ccfd557 commit ed8fcb9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/styles/ninja_star_small.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,21 @@
.setGeoCenter({ x: 0, y: 0 })
.setZoomFactor(0.02)

const cells = [], nb = 20
const cells = [], nb = 15
for (let x = 0; x < nb; x++) {
cells.push({ x: x, y: 0, v: x / (nb-1) * 100 })
cells.push({ x: x, y: 2, v: x / (nb-1) * 100 })
}

app.addLayerFromDataset(
app.makeLGridDataset(1, cells
),
[
new gviz.NinjaStarStyle({
color: () => 'purple',
color: () => 'black',
sizeCol: 'v',
size: (v, r, s, zf) => v / 100,
shape: (c)=> c.y==0?"p":"o"
}),
],
{
Expand Down

0 comments on commit ed8fcb9

Please sign in to comment.