Codebase list gjs / 8fcde78
examples: Fix Clutter example I noticed it was broken while testing it with a new test.jpg image. Philip Chimento 3 years ago
1 changed file(s) with 4 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
11
22 Clutter.init(null);
33
4 let stage = new Clutter.Stage();
4 const stage = new Clutter.Stage({visible: true});
55
66 let texture = new Clutter.Texture({
77 filename: 'test.jpg',
1313 return Clutter.EVENT_STOP;
1414 });
1515
16 let color = new Clutter.Color();
17 color.from_string('Black');
16 const [, color] = Clutter.Color.from_string('Black');
17 stage.background_color = color;
1818
19 stage.color = color;
20
21 stage.add_actor(texture);
22 stage.show();
19 stage.add_child(texture);
2320
2421 Clutter.main();