Project

General

Profile

« Previous | Next » 

Revision e2e92a29

Added by Leszek Koltunski almost 7 years ago

Simplify Effect classes.

View differences:

src/main/java/org/distorted/library/effect/FragmentEffectBrightness.java
34 34
/**
35 35
 * Makes a certain sub-region of the Object smoothly change its brightness level.
36 36
 *
37
 * @param brightness 1-dimensional Data that returns the level of brightness we want to have
38
 *                   at any given moment. Valid range: <0,infinity)
37
 * @param brightness level of brightness we want to have at any given moment. Valid range: <0,infinity)
39 38
 * @param region     Region this Effect is limited to.
40 39
 * @param smooth     If true, the level of 'brightness' will smoothly fade out towards the edges of the region.
41 40
 */
42 41
  public FragmentEffectBrightness(Data1D brightness, Data4D region, boolean smooth)
43 42
    {
44 43
    super(smooth?EffectName.SMOOTH_BRIGHTNESS:EffectName.BRIGHTNESS);
45

  
46 44
    mBrightness = brightness;
47 45
    mRegion = (region==null ? new Static4D(0,0,Float.MAX_VALUE, Float.MAX_VALUE) : region);
48 46
    }
......
51 49
/**
52 50
 * Makes the whole Object smoothly change its brightness level.
53 51
 *
54
 * @param brightness 1-dimensional Data that returns the level of brightness we want to have
55
 *                   at any given moment. Valid range: <0,infinity)
52
 * @param brightness level of brightness we want to have at any given moment. Valid range: <0,infinity)
56 53
 */
57 54
  public FragmentEffectBrightness(Data1D brightness)
58 55
    {
59 56
    super(EffectName.BRIGHTNESS);
60

  
61 57
    mBrightness = brightness;
62 58
    mRegion = new Static4D(0,0,Float.MAX_VALUE, Float.MAX_VALUE);
63 59
    }

Also available in: Unified diff