Project

General

Profile

« Previous | Next » 

Revision e4878781

Added by Leszek Koltunski over 8 years ago

Fixes for fragment effects in Effects3D.

View differences:

src/main/java/org/distorted/library/DistortedObject.java
571 571
 * Makes a certain sub-region of the Object smoothly change all three of its RGB components.
572 572
 *        
573 573
 * @param blend  1-dimensional Data that returns the level of blend a given pixel will be
574
 *               mixed with the next parameter 'color': pixel = (1-level)*pixel + level*color
574
 *               mixed with the next parameter 'color': pixel = (1-level)*pixel + level*color.
575
 *               Valid range: <0,1>
575 576
 * @param color  Color to mix. (1,0,0) is RED.
576 577
 * @param region Region this Effect is limited to.
577 578
 * @param smooth If true, the level of 'blend' will smoothly fade out towards the edges of the region.
......
587 588
 * Makes the whole Object smoothly change all three of its RGB components.
588 589
 *
589 590
 * @param blend  1-dimensional Data that returns the level of blend a given pixel will be
590
 *               mixed with the next parameter 'color': pixel = (1-level)*pixel + level*color
591
 *               mixed with the next parameter 'color': pixel = (1-level)*pixel + level*color.
592
 *               Valid range: <0,1>
591 593
 * @param color  Color to mix. (1,0,0) is RED.
592 594
 * @return       ID of the effect added, or -1 if we failed to add one.
593 595
 */
......
601 603
 * Makes a certain sub-region of the Object smoothly change its transparency level.
602 604
 *        
603 605
 * @param alpha  1-dimensional Data that returns the level of transparency we want to have at any given
604
 *               moment.
606
 *               moment: pixel.a *= alpha.
607
 *               Valid range: <0,1>
605 608
 * @param region Region this Effect is limited to. 
606 609
 * @param smooth If true, the level of 'alpha' will smoothly fade out towards the edges of the region.
607 610
 * @return       ID of the effect added, or -1 if we failed to add one. 
......
616 619
 * Makes the whole Object smoothly change its transparency level.
617 620
 *
618 621
 * @param alpha  1-dimensional Data that returns the level of transparency we want to have at any
619
 *               given moment.
622
 *               given moment: pixel.a *= alpha.
623
 *               Valid range: <0,1>
620 624
 * @return       ID of the effect added, or -1 if we failed to add one.
621 625
 */
622 626
  public long alpha(Data1D alpha)
......
629 633
 * Makes a certain sub-region of the Object smoothly change its brightness level.
630 634
 *        
631 635
 * @param brightness 1-dimensional Data that returns the level of brightness we want to have
632
 *                   at any given moment.
636
 *                   at any given moment. Valid range: <0,infinity)
633 637
 * @param region     Region this Effect is limited to.
634 638
 * @param smooth     If true, the level of 'brightness' will smoothly fade out towards the edges of the region.
635 639
 * @return           ID of the effect added, or -1 if we failed to add one.
......
644 648
 * Makes the whole Object smoothly change its brightness level.
645 649
 *
646 650
 * @param brightness 1-dimensional Data that returns the level of brightness we want to have
647
 *                   at any given moment.
651
 *                   at any given moment. Valid range: <0,infinity)
648 652
 * @return           ID of the effect added, or -1 if we failed to add one.
649 653
 */
650 654
  public long brightness(Data1D brightness)
......
657 661
 * Makes a certain sub-region of the Object smoothly change its contrast level.
658 662
 *        
659 663
 * @param contrast 1-dimensional Data that returns the level of contrast we want to have
660
 *                 at any given moment.
664
 *                 at any given moment. Valid range: <0,infinity)
661 665
 * @param region   Region this Effect is limited to.
662 666
 * @param smooth   If true, the level of 'contrast' will smoothly fade out towards the edges of the region.
663 667
 * @return         ID of the effect added, or -1 if we failed to add one.
......
672 676
 * Makes the whole Object smoothly change its contrast level.
673 677
 *
674 678
 * @param contrast 1-dimensional Data that returns the level of contrast we want to have
675
 *                 at any given moment.
679
 *                 at any given moment. Valid range: <0,infinity)
676 680
 * @return         ID of the effect added, or -1 if we failed to add one.
677 681
 */
678 682
  public long contrast(Data1D contrast)
......
685 689
 * Makes a certain sub-region of the Object smoothly change its saturation level.
686 690
 *        
687 691
 * @param saturation 1-dimensional Data that returns the level of saturation we want to have
688
 *                   at any given moment.
692
 *                   at any given moment. Valid range: <0,infinity)
689 693
 * @param region     Region this Effect is limited to.
690 694
 * @param smooth     If true, the level of 'saturation' will smoothly fade out towards the edges of the region.
691 695
 * @return           ID of the effect added, or -1 if we failed to add one.
......
700 704
 * Makes the whole Object smoothly change its saturation level.
701 705
 *
702 706
 * @param saturation 1-dimensional Data that returns the level of saturation we want to have
703
 *                   at any given moment.
707
 *                   at any given moment. Valid range: <0,infinity)
704 708
 * @return           ID of the effect added, or -1 if we failed to add one.
705 709
 */
706 710
  public long saturation(Data1D saturation)

Also available in: Unified diff