rev2004 / jsc3d

Automatically exported from code.google.com/p/jsc3d
0 stars 0 forks source link

Stl colour and background #18

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm trying to customise. The colours for stl file display. The default is 
yellow objects in a grey gradient background.
Is there any way to change the colour schemes? I have tried changing the # 
colour codes in the php file but it makes no difference. 
Regards
Simon

Original issue reported on code.google.com by simond...@gmail.com on 17 Mar 2013 at 9:38

GoogleCodeExporter commented 9 years ago
Yes of course. Colors are configurable using viewer.setParameter() by setting 
'ModelColor', 'BackgroundColor1' and 'BackgroundColor2' paramenters with 
appropriate values.

See this for an detailed example: 
http://code.google.com/p/jsc3d/source/browse/trunk/jsc3d/demos/test.html#51.

Original comment by Humu2...@gmail.com on 18 Mar 2013 at 7:13

GoogleCodeExporter commented 9 years ago
Thanks for that. Are you sure that applies to the stl viewer, as nothing seems 
to change when I change these values in the jsc3d.js file/

Original comment by undercut...@gmail.com on 18 Mar 2013 at 10:42

GoogleCodeExporter commented 9 years ago
Its ok, I think I managed to sort it out by deleting some code

Original comment by undercut...@gmail.com on 18 Mar 2013 at 10:57