forked from 0x2620/oxjs
add image module
This commit is contained in:
parent
b60f0c8791
commit
be9928d105
4 changed files with 131 additions and 0 deletions
11
demos/image/js/image.js
Normal file
11
demos/image/js/image.js
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
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'));
|
||||
});
|
||||
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue