Questions tagged [trianglify]

Algorithmically generated triangle art

Github Link: https://github.com/qrohlf/trianglify

6 questions
9
votes
3 answers

Change variance on mouse movement

So I'm messing around with trianglify.js. My aim here is that when the mouse moves my trianglfied canvas' variance will change. In theory fine but in practice it's not really taken I have tried a few different code formats but just can't actually…
user4563161
1
vote
1 answer

How use a single color in trianglify.min.js?

I want to use only one color with the library trianglify.min.js The library use colors random.
1
vote
1 answer

Using script resource Trianglify in Ember route to modify DOM

I am learning Ember, and have hit a roadblock when it comes to using an script dependency in my ember route. I have included the bower dependency Trianglify.js in my application using app.import() in…
robabby
  • 2,160
  • 6
  • 32
  • 47
0
votes
0 answers

Trianglify.js generate backgrounds on server side (ruby)

I'm trying to generate triangle-pattern backgrounds server-side (ruby) using trianglify.js and gem 'therubyracer' (also tried execjs - same error) I use the following code require 'v8' cxt = V8::Context.new cxt.load('trianglify.js') png =…
Ilya Cherevkov
  • 1,743
  • 2
  • 17
  • 47
0
votes
0 answers

Triggering a script after loading from an internal link

I am using an SVG element on page A with a href link to page B-- page B has a script that calls the Trianglify api to generate the background. However, if you navigate to page B by clicking this link, the script doesn't trigger. If you refresh the…
rubinca
  • 13
  • 4
0
votes
1 answer

set Trianglify js for a SVG background

i want to set Trianglify js for a SVG background but i can't. i can set for a div with the following codes : var something = document.getElementById('portfolio'); var dimensions = something.getClientRects()[0]; var pattern =…
user3789905