oxjs/demos/image/js/image.js
2011-06-19 17:40:53 +02:00

11 lines
No EOL
421 B
JavaScript

Ox.load('Image', function() {
Ox.Image('png/Netherlandish Proverbs.png', function(image) {
Ox.element('<img>').attr({src: image.url()}).appendTo(Ox.element('body'));
image.saturation(-0.9);
Ox.element('<img>').attr({src: image.url()}).appendTo(Ox.element('body'));
image.brightness(-0.5);
Ox.element('<img>').attr({src: image.url()}).appendTo(Ox.element('body'));
});
});