Skip to content

Commit

Permalink
added changes by @gytdau
Browse files Browse the repository at this point in the history
closes #35
  • Loading branch information
Rab Rennie committed Dec 5, 2015
1 parent dce710c commit a37886e
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions anything.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,44 @@
return RGBtoCMYK(rgb);
}

var g = {
build: function(base, shaft, end, tail) {
return base + shaft + end + tail
},
base: {
full: "8",
half: "3"
},
shaftType: {
double: "=",
alternative: "═"
},
shaftLength: {
nano: 0,
macro: 1,
milli: 2,
kilo: 5,
mega: 10,
giga: 20,
tera: 100
},
shaftBuilder: function(shaft, length) {
return Array(length+1).join(shaft);
},
end: {
circle: "D",
circleDashed: "‎Ð",
pointy: ">",
rounded: ")",
flat: "]"
},
tail: {
wavy: "~",
flat: "-",
double: "="
}
}


//prototypes go here
anything.prototype.doTheThing = doTheThing;
Expand All @@ -303,6 +341,7 @@
anything.prototype.HSLtoRGB = HSLtoRGB;
anything.prototype.CMYKtoHSL = CMYKtoHSL;
anything.prototype.HSLtoCMYK = HSLtoCMYK;
anything.prototype.g = g;

//put that shit where everyone can see it.
if(typeof(window.Δ) === 'undefined'){
Expand Down

0 comments on commit a37886e

Please sign in to comment.