meltingice / CamanJS

Javascript HTML5 (Ca)nvas (Man)ipulation
http://camanjs.com
BSD 3-Clause "New" or "Revised" License
3.55k stars 404 forks source link

Cant use this.filter #22

Closed mentor2k1 closed 12 years ago

mentor2k1 commented 12 years ago

Hi,

i want use that code:

Caman("#" + sId + " canvas", function ( )
{
    this.filter.sharpen(15);

    this.render(
    );
}); 

But it get "this.filter is undefined".

How can i get access to the sharpen filter?

// Oliver

meltingice commented 12 years ago

this.filter is only used when operating inside of a layer. Just use this.sharpen(15) instead and it should work.

mentor2k1 commented 12 years ago

Hi, but i get the following error on that:

this.sharpen is not a function ... so i can´t use this.sharpen()

meltingice commented 12 years ago

What version of Caman do you have included? There is a base version with only a small set of built-in functions, and a full version with all of the functionality. Sharpen is only in the full version. You can include caman.full.js or caman.full.min.js.

mentor2k1 commented 12 years ago

currently the caman.js, but if you say that sharpen is only in the full version, i will change this. Maybe you could add this to your documentation.

// Oliver

meltingice commented 12 years ago

Noted, thanks. I'll clarify that somewhere.