-
... e:///) // Path string i = SCImage .new( "/Library/Desktop Pictures/Ripples Blue.jpg" ); [i.width, i.height].postln; i.plot; i.free; // URL string - http:// or ftp:// - blocks until image is downloaded i = SCImage .new( "http://www.google.co ...
-
... da fast swapping test a = SCImage .new( "/Library/Desktop Pictures/Plants/Peony.jpg" ).scalesWhenResized_( true ).setSize(500, 400); a.plot; // look at me first - i am beautiful // but i want you to be posterize ( h = SCImageFilter .new( \C ...
-
... INVERSION SHADER EXAMPLE ( a = SCImage .new( Document .current.dir +/+ "vduck2.jpg" ); // get the image k = SCImageKernel .new; k.shader_( " vec4 invertPixel(vec4 pix) { return vec4(1.0 - pix.r, 1.0 - pix.g, 1.0 - pix.b, pix.a); } kernel v ...
-
... : SCView SCMovieView can play movies such as .mov and mpg, and image files like jpg, png, tiff and others. See also: SCImage Creation / Class Methods *new (parent, bounds) parent - The parent view. bounds - An instance of Rect , or a Point ...
-
... ery special occasion. i = SCImage .new( "/Library/Desktop Pictures/Ripples Blue.jpg" ); a = SCNSObject .newFromRawPointer(i.slotAt(0)).invoke( "nsimage" ); a.className.postln; // verify :) // now do what you want with the NSImage of the SCI ...
-
... blob= false , pmouse; a = SCImage .new( "/Library/Desktop Pictures/Ripples Blue.jpg" ); win = SCWindow .new( "refreshInRect Test" , Rect (400, 400, 600, 200), scroll: true ).front; win.onClose_({ a.free; }); userView = SCUserView (win, Rect ...