input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
public void set operation int operation this operation operation | set the filter operation |
public int get operation return operation | get the filter operation |
public void set brightness int brightness this brightness brightness | set the brightness |
public int get brightness return brightness | get the brightness |
protected float blur radius at int x int y int width int height return float x width | override this to get a different blur radius at eahc point |
public void set hradius int h radius this h radius h radius | set the horizontal size of the blur |
public int get hradius return h radius | get the horizontal size of the blur |
public void set vradius int v radius this v radius v radius | set the vertical size of the blur |
public void set dispersion float dispersion this dispersion dispersion | set the dispersion |
public int get vradius return v radius | get the vertical size of the blur |
public float get dispersion return dispersion | get the dispersion |
public void set time float time this time time | set the time |
public void set radius int radius this h radius this v radius radius | set the radius of the effect |
public float get time return time | set the time |
public int get radius return h radius | get the radius of the effect |
public void set samples int samples this samples samples | set the number of samples per pixel |
public int get samples return samples | get the number of samples per pixel |
public void set bg color int c bg color c | set the background color |
public void set blur mask buffered image blur mask this blur mask blur mask | set the mask used to give the amount of blur at each point |
public int get bg color return bg color | get the background color |
public buffered image get blur mask return blur mask | get the mask used to give the amount of blur at each point |
public void set num levels int num levels this num levels num levels initialized false | set the number of levels in the output image |
public int get num levels return num levels | get the number of levels in the output image |
protected void initialize levels new int 256 if num levels 1 for int i 0 i 256 i levels i 255 num levels i 256 num levels 1 | initialize the filter |
protected void transform space rectangle rect | calculate output bounds for given input bounds |
public void add row int before int size rows 1 cols float x new float size float y new float size rows int i 0 int j 0 for int row 0 row rows row for int col 0 col cols col int k j col int l i col if row before x k x grid l x grid k 2 y k y grid l y grid k 2 else x k x grid l y k y grid l if row before 1 i cols j cols x grid x y grid y | add a new row to the grid |
public void set distance float distance this distance distance | set the distance of blur |
public float get distance return distance | get the distance of blur |
public void set rotation float rotation this rotation rotation | set the blur rotation |
public void add col int before int size rows cols 1 float x new float size float y new float size cols int i 0 int j 0 for int row 0 row rows row int i row cols 1 int j row cols for int col 0 col cols col if col before x j x grid i x grid i 1 2 y j y grid i y grid i 1 2 else x j x grid i y j y grid i i j x grid x y grid y | add a new column to the grid |
public void remove row int r int size rows 1 cols float x new float size float y new float size rows int i 0 int j 0 for int row 0 row rows row for int col 0 col cols col int k j col int l i col x k x grid l y k y grid l if row r 1 i cols i cols j cols x grid x y grid y | remove a row from the grid |
public float get zoom return zoom | get the blur zoom |
public void set wrap edges boolean wrap edges this wrap edges wrap edges | set whether to wrap at the image edges |
public void remove col int r int size rows cols 1 float x new float size float y new float size cols for int row 0 row rows row int i row cols 1 int j row cols for int col 0 col cols col x j x grid i y j y grid i if col r 1 i i j x grid x y grid y | remove a column from the grid |
public boolean get wrap edges return wrap edges | get whether to wrap at the image edges |
public void set angle float angle this angle angle float cos float math cos angle float sin float math sin angle m00 cos m01 sin m10 sin m11 cos | specifies the angle of the texture |
public void set height float height this height height | set the height of the arc |
public float get height return height | get the height of the arc |
public void set spread angle float spread angle this spread angle spread angle | set the spread angle of the arc |
public float get spread angle return spread angle | get the spread angle of the arc |
public void set radius float radius this radius radius | set the radius of the effect |
public float get radius return radius | get the radius of the effect |
public int get block size return block size | get the pixel block size |
public void set radius float radius this radius radius sigma radius 3 | set the radius of the effect |
public void set serpentine boolean serpentine this serpentine serpentine | set whether to use a serpentine pattern for return or not |
public boolean get serpentine return serpentine | return the serpentine setting |
public void set shadow color int shadow color this shadow color shadow color | set the color of the shadow |
public void set color dither boolean color dither this color dither color dither | set whether to use a color dither |
public boolean get color dither return color dither | get whether to use a color dither |
public int get shadow color return shadow color | get the color of the shadow |
public void set matrix int matrix this matrix matrix sum 0 for int i 0 i matrix length i sum matrix i | set the dither matrix |
public void set shadow only boolean shadow only this shadow only shadow only | set whether to only draw the shadow without the original image |
public boolean get shadow only return shadow only | get whether to only draw the shadow without the original image |
public float get exposure return exposure | get the exposure level |
public void set radius int radius this radius radius | set the horizontal size of the blur |
public int get radius return radius | get the horizontal size of the blur |
public void set matrix int matrix this matrix matrix | set the dither matrix |
public void set shine float shine this shine shine | set the amount of shine to add to the range 0 |
public float get shine return shine | get the amount of shine to add in the range 0 |
public void set color int color this color color | set the color of the metal |
protected void initialize rows cols int math sqrt matrix length map new int levels for int i 0 i levels i int v 255 i levels 1 map i v div new int 256 mod new int 256 int rc rows cols 1 for int i 0 i 256 i div i levels 1 i 256 mod i i rc 256 | initialize the filter |
public int get color return color | get the color of the metal |
public void set monochrome boolean monochrome this monochrome monochrome | set the type of noise to add |
public void set num colors int num colors this num colors math min math max num colors 8 256 | set the number of colors to quantize to |
public boolean get monochrome return monochrome | get the type of noise to add |
public int get num colors return num colors | get the number of colors to quantize to |
public void set dither boolean dither this dither dither | set whether to use dithering or not |
public boolean get dither return dither | return the dithering setting |
private void set rgb buffered image image int x int y int width int height int pixels int type image get type if type buffered image type int argb type buffered image type int rgb image get raster set data elements x y width height pixels else image set rgb x y width height pixels 0 width | a convenience method for setting argb pixels in an image |
public void set sides int sides this sides sides | set the number of sides of the kaleidoscope |
public int get sides return sides | get the number of sides of the kaleidoscope |
public void set angle2 float angle2 this angle2 angle2 | set the secondary angle of the kaleidoscope |
public float get angle2 return angle2 | get the secondary angle of the kaleidoscope |
public void set hradius float h radius this h radius h radius | set the horizontal size of the blur |
public float get hradius return h radius | get the horizontal size of the blur |
public void set zoom float zoom this zoom zoom | specifies the amount to scale on each iteration |
public void set vradius float v radius this v radius v radius | set the vertical size of the blur |
public float get vradius return v radius | get the vertical size of the blur |
public void set start alpha float start alpha this start alpha start alpha | set the alpha value at the first iteration |
public float get start alpha return start alpha | get the alpha value at the first iteration |
public void set radius float radius this h radius this v radius radius | set both the horizontal and vertical sizes of the blur |
public void set end alpha float end alpha this end alpha end alpha | set the alpha value at the last iteration |
public float get radius return h radius | get the size of the blur |
public float get end alpha return end alpha | get the alpha value at the last iteration |
public void set white int white this white white | set the color to be used for pixels above the upper threshold |
public int get white return white | get the color to be used for pixels above the upper threshold |
public void set black int black this black black | set the color to be used for pixels below the lower threshold |
public int get black return black | set the color to be used for pixels below the lower threshold |
public void copy to gradient g g num knots num knots g map int map clone g x knots int x knots clone g y knots int y knots clone g knot types byte knot types clone | copy one gradient into another |
public void set color int n int color int first color map 0 int last color map 256 1 if n 0 for int i 0 i n i map i image math mix colors float i n first color color if n 256 1 for int i n i 256 i map i image math mix colors float i n 256 n color last color | set a knot color |
public int get num knots return num knots | get the number of knots in the gradient |
public void set knot int n int color y knots n color rebuild gradient | set a knot color |
public int get knot int n return y knots n | get a knot color |
public void set knot type int n int type knot types n byte knot types n color mask type rebuild gradient | set a knot type |
public int get knot type int n return byte knot types n color mask | get a knot type |
public void set knot blend int n int type knot types n byte knot types n blend mask type rebuild gradient | set a knot blend type |
public void list print stream s int level for int i 0 i level i system out print if count 0 system out println index count count else system out println index count count red total red count green total green count blue total blue count for int i 0 i 8 i if leaf i null leaf i list s level 2 | a debugging method which prints the tree out |
public byte get knot blend int n return byte knot types n blend mask | get a knot blend type |
public void setup int num colors maximum colors num colors reduce colors math max 512 num colors 2 | initialize the quantizer |
public void add pixels int pixels int offset int count for int i 0 i count i insert color pixels i offset if colors reduce colors reduce tree reduce colors | add pixels to the quantizer |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.