I've searched and searched but had no luck. I'm not looking for a solution to my entire case, I just want to be able to switch the tint/fill of my symbols/shapes! It shouldn't be rocket science, right? *** Sure, I can make 3 different keyframes for each element with different colors and correspond the frame number with the data in the csv/xls-file, but if I manually have to do that for 20-100 elements, on each project, that's not a viable option. ** I've found guides on how to generate a shape and set the fill color of that shape, but haven't figured out how to apply it on a shape that's already created. * I've read that color tinting is demanding in terms of performance and somewhat limited in usage. Depending on which value each element is given from the csv/xls-file I want them to be filled/tinted with 1 of 3 specific colors.*** I'm going to put the instance names of these 20-100 elements in an array and read in data from a csv/xls-file. I will also have to repeat this process every time I get a new project (new project means a new svg/ai-file). For the record, yes I have to get the elements from an svg/ai-file and they are all different in terms of shape and placing. That procedure is far from ideal but it still goes pretty quick. I manually have to create a button of each element (since they have to be clickable) and I also have to give each one a unique instance name. I've made each element mid-grey, so it's possible to tint them easily. My case is that I have to import a svg/ai-file into a movie-clip and that svg/ai-file consists of 20-100 elements. Hi, how do I change the color tint of a symbol/shape in a HTML5 Canvas document (with code)? *Īlternatively how do I change the fill-color inside a symbol/shape (with code)? **
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |