Generates Interchain Foundation's emblem using d3.
The static emblem can be generated in SVG and downloaded from here.
- The default state of the emblem is
yaw: 0
androll:0
. Use this setting unless there's a compelling reason not to. - Please make sure to Outline Stroke in apps such as Illustrator to preserve the stroke weight upon scaling.
For placement of animated emblem on a webpage, put below code where it needs to be shown. This demo page shows embedded emblem. Various display options can be set as data-*
attributes.
Below code will embed the animated emblem below itself with 300px
width and height. If data-animated
attribute is present, the emblem will be animated.
<script
src="https://interchainio.github.io/interchain-emblem-renderer/render.js"
data-animated
data-size="300"
></script>
<script
src="https://interchainio.github.io/interchain-emblem-renderer/render.js"
data-animated
data-size="300"
data-yaw="30"
data-roll="60"
data-fps="60"
data-accelerate="2"
data-color="red"
></script>
Attribute | Type | Default | Description |
---|---|---|---|
data-animate |
Boolean | false |
Animates the emblem when attribute exists. |
data-size |
Int | 640 |
Sets width and height (same value) in px. |
data-yaw |
Float | 0 |
Sets the initial yaw of the projection in degrees. |
data-roll |
Float | 0 |
Sets the initial roll of the projection in degrees. |
data-fps |
Float | 24 |
Sets number of frames to display per second. |
data-accelerate |
Float | 1 |
Accelerates animation. Setting this to 2 will result in 2x speed of animation (2x yaw and roll offset in each frame). |
data-color |
String | black |
Takes CSS color values. |