Skip to main content
100%

mosaico - estrella de 8 puntas

✓ Published0🌍 Public
Aaaizemberg
Last edited Oct 4, 2020
Created on Mar 7, 2019

This example renders a decorative mosaic pattern of eight-pointed stars built from overlapping squares. A teal SVG background hosts white rectangles, with each star formed by two rotated square tiles repeated in a grid. The visualization uses D3 v5 to append SVG `<rect>` elements, applying `transform` attributes for positioning and rotation. Hovering highlights individual tiles in steelblue, revealing the underlying grid structure. The code defines a `prototile` function that places a base square and a 45-degree rotated square, iterating over a 10×10 grid with spacing offsets.

AI-generated description

Similar vizzes