Skip to content

Instantly share code, notes, and snippets.

@roundrobin
Created February 5, 2013 05:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roundrobin/4712300 to your computer and use it in GitHub Desktop.
Save roundrobin/4712300 to your computer and use it in GitHub Desktop.
text style 1 - round
{"description":"text style 1 - round","endpoint":"","display":"svg","public":true,"require":[{"name":"Check","url":"https://raw.github.com/roundrobin/svg-path-generator/master/svg-path-generator.js"}],"fileconfigs":{"inlet.js":{"default":true,"vim":false,"emacs":false,"fontSize":12},"_.md":{"default":true,"vim":false,"emacs":false,"fontSize":12},"config.json":{"default":true,"vim":false,"emacs":false,"fontSize":12}},"play":false,"loop":false,"restart":false,"autoinit":true,"pause":true,"loop_type":"period","bv":false,"nclones":15,"clone_opacity":0.4,"duration":3000,"ease":"linear","dt":0.01,"fullscreen":false,"thumbnail":"http://i.imgur.com/dWORJld.png"}
var r=119;
var path = new Path(g)
path.add(['m',301,100]);
path.el().attr({
stroke: "#FFFFFF",
"stroke-width": 4,
fill: "none",
id: "bezierCurve"
})
var reduce= 1;
path.add(['a',r*reduce,r*reduce, 0, 1, 1, 1, 1 ]);
path.render();
var text = g.append('text')
.attr({
fill: "#8EE08E",
stroke: "#005800",
"stroke-width": 2,
x : 0,
y: 0,
"font-size": 40,
"font-family": "SF Movie Poster",
"text-anchor": "middle",
kerning: 4
})
.attr({
transform: "translate("+[0,223]+")scale("+(1.056)+")",
"class": "group",
"class": "el"
});
//.style("text-shadow","2px 2px 5px #3D2B3D")
text.append('textPath')
.attr('xlink:href','#bezierCurve')
.attr("startOffset",38+"%")
.attr("text-anchor","middle")
.text("Live Coding environment - Tributarty")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment