json and Color

General discussion about the R.U.B.E editor
Post Reply
Posts: 54
Joined: Sun Jul 19, 2015 11:42 am

json and Color

Post by rileyrg »

Total mental wipeout here. Just come back to coding my little app after a few months away. What's the way to read in a color property from "world values" from the export b2djson json in Java? (I want to set a custom ambient light property on the scene properties)
Last edited by rileyrg on Wed Feb 03, 2016 9:28 am, edited 1 time in total.
Site Admin
Posts: 861
Joined: Sat Dec 22, 2012 7:20 pm

Re: json and Color

Post by iforce2d »

hmmm... it's not a mental wipeout I'm afraid. Looks like the Java source code was never updated to handle any color properties other than the colorTint of images. I'm in the middle of moving house right now, but I'll try to get it done in the next couple of weeks.
If you are in a hurry you could perhaps figure it out by looking for 'color' and 'custom' in Jb2dJson.java.
Post Reply