dimanche 21 février 2016

Accessing text from a Raphael Js Set

I created using raphael a set that contains numbers.

var mySet = paper.set()

for (var i=0; i<10; i++){
var number = paper.text(10,10, i);  //my number is " i "
mySet.push(number);
}

My problem is that i want to access my set and pick the number like so i can compare it later..

var numberFromSet = mySet[4].myNumber //this does not work, it's just to explain what i want

any answer ?

Aucun commentaire:

Enregistrer un commentaire