more like this
--Ray
clrCoda wrote in Tue Oct 20, 2015 8:39 pm:more like this
clrCoda wrote in Tue Oct 20, 2015 8:51 pm:It occurs to me that some of us can only render canvas thru Rembrandt and I don't use Rembrandt regularly because of the problem it has rendering complicated hotspots.
Soitanen wrote in Tue Oct 20, 2015 8:13 am:AMD Radeon R9 200 Series (infp from Windows device manager).
var (width,height) = (320,160);
var title = 'My new Window';
# create a new window, dimensions are WIDTH x HEIGHT, using the dialog decoration (i.e. titlebar)
var window = canvas.Window.new([width,height],"dialog")
.set('title',title);
# adding a canvas to the new window and setting up background colors/transparency
var myCanvas = window.createCanvas().set("background", canvas.style.getColor("bg_color"));
# Using specific css colors would also be possible:
# myCanvas.set("background", "#ffaac0");
# creating the top-level/root group which will contain all other elements/group
var root = myCanvas.createGroup();
# path is relative to $FG_ROOT (base package)
var path = "Textures/Splash1.png";
# create an image child for the texture
var child = root.createChild("image")
.setFile(path)
.setTranslation(100, 10)
.setSize(130, 130);
Users browsing this forum: No registered users and 2 guests