Skip to content

Instantly share code, notes, and snippets.

@yurenju
Created May 26, 2011 23:48
Show Gist options
  • Save yurenju/994377 to your computer and use it in GitHub Desktop.
Save yurenju/994377 to your computer and use it in GitHub Desktop.
clutter-basic
const Clutter = imports.gi.Clutter;
Clutter.init(0, null);
let stage = new Clutter.Stage();
let texture = new Clutter.Texture({ filename: 'test.jpg',
reactive: true });
stage.add_actor(texture);
stage.show();
Clutter.main();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment