Pena Contents
Introduction
Control Pane
Brush Pane
Texture Pane
Effects Pane
Color Picker
Save/Load Pane
Selection Pane
Preferences Pane
Intelligent Canvas
Wacom Bluetooth Stylus
Jot Bluetooth Stylus
 
The Effects Library
Effects Introduction
Color Source Effects
Procedural Source Effects
Color Filter Effects
Spatial Filter Effects
  • Color Filter Introduction
  • Airbrush
  • RGBA Discard
  • RGBA Replace
  • Selective Discard
  • Selective Replace
  • Star Template
  • Stipple
  • Texture Displace
  • XY Ripple
  • XY Rotate
  • XY Twist
  • Math and Logic Effects
    Special Effects
     
    Artists Gallery
    The Artist Gallery
     
    Pena Support
    Troubleshooting

       

      Previous SectionHide ContentsNext Section


      Effect:Selective Replace
      Category:Spatial Filters
      Speed:Fast

      Description: The Selective Replace Effect is extremely important in Pena as it lets you replace a particular range of color while painting. This is a more complex to setup version of the RGBA Replace Effect, but also offers finer control over the results.

      Replace Effects let you set a range of color. If Color 1 matches that range, it is replaced with Color 2 (or vise versa, depending on the options).

      Note that all four channels, including Alpha, are replaced. This allows you to replace a solid color with a transparent color (effectively a Discard though future Effects will still be applied, unlike Discard).

      Selective Replace lets you specify a range for each color channel. This means you can set a Red, Green, Blue, and optionally Alpha range to compare against.

      When the Minimum ranges are smaller than the Maximum, any colors that fall between (and including) the Minimum and Maximum are replaced.

      If the Minimum ranges is higher than the Maximum, then this acts as a Notch Filter. Colors below the Maximum and colors above the Minimum are replaced.

      To help illustrate this consider the following:

      In the above image, black represents the value 0 and white is 255. In the top illustration you can see that when the Minimum is lower than the Maximum, the colors in between those two values are replaced. However, in the bottom illustration Maximum is below Minimum. You can see that the opposite colors, from the first illustration, are replaced.

      You will also notice that there are no Output Color options for Selective Replace. This is because you set this Effect to work on Color 1, or Color 2. It outputs the Color you select to use (in the Options).

       
      Options: The Selective Replace Effect has the following Options Pane:

      Change Color 2:If set to a Red X then Color 1 is used for the range check and matching ranges are replaced with Color 2. If set to a Green Check Mark then Color 2 is used for the range check and matching ranges are replaced with Color 1.
      Red Minimum:This value works together with Red Maximum to determine what range of colors to replace. When this is lower than Red Maximum, any colors between, and including, Red Minimum and Red Maximum will be replaced with the alternate Color. When Red Minimum is larger than Red Maximum, the test is inverted. Colors between the Red Maximum and Red Minimum are left unchanged, and values outside that range are replaced with the alternate Color.
      Red Maximum:This value works together with Red Minimum to determine what range of colors to replace. When this is lower than Red Maximum, any colors between, and including, Red Minimum and Red Maximum will be replaced with the alternate Color. When Red Minimum is larger than Red Maximum, the test is inverted. Colors between the Red Maximum and Red Minimum are left unchanged, and values outside that range are replaced with the alternate Color.
      Green Minimum:This value works together with Green Maximum to determine what range of colors to replace. When this is lower than Green Maximum, any colors between, and including, Green Minimum and Green Maximum will be replaced with the alternate Color. When Green Minimum is larger than Green Maximum, the test is inverted. Colors between the Green Maximum and Green Minimum are left unchanged, and values outside that range are replaced with the alternate Color.
      Green Maximum:This value works together with Green Minimum to determine what range of colors to replace. When this is lower than Green Maximum, any colors between, and including, Green Minimum and Green Maximum will be replaced with the alternate Color. When Green Minimum is larger than Green Maximum, the test is inverted. Colors between the Green Maximum and Green Minimum are left unchanged, and values outside that range are replaced with the alternate Color.
      Blue Minimum:This value works together with Blue Maximum to determine what range of colors to replace. When this is lower than Blue Maximum, any colors between, and including, Blue Minimum and Blue Maximum will be replaced with the alternate Color. When Blue Minimum is larger than Blue Maximum, the test is inverted. Colors between the Blue Maximum and Blue Minimum are left unchanged, and values outside that range are replaced with the alternate Color.
      Blue Maximum:This value works together with Blue Minimum to determine what range of colors to replace. When this is lower than Blue Maximum, any colors between, and including, Blue Minimum and Blue Maximum will be replaced with the alternate Color. When Blue Minimum is larger than Blue Maximum, the test is inverted. Colors between the Blue Maximum and Blue Minimum are left unchanged, and values outside that range are replaced with the alternate Color.
      Alpha Minimum:This value works together with Alpha Maximum to determine what range of colors to replace. When this is lower than Alpha Maximum, any colors between, and including, Alpha Minimum and Alpha Maximum will be replaced with the alternate Color. When Alpha Minimum is larger than Alpha Maximum, the test is inverted. Colors between the Alpha Maximum and Alpha Minimum are left unchanged, and values outside that range are replaced with the alternate Color.
      Alpha Maximum:This value works together with Alpha Minimum to determine what range of colors to replace. When this is lower than Alpha Maximum, any colors between, and including, Alpha Minimum and Alpha Maximum will be replaced with the alternate Color. When Alpha Minimum is larger than Alpha Maximum, the test is inverted. Colors between the Alpha Maximum and Alpha Minimum are left unchanged, and values outside that range are replaced with the alternate Color.
      Compare Alpha:If set to a Red X then the Alpha Channel will not be included in the range check. If set to a Green Check Mark then the Alpha Channel is considered in the range check.

      Example: To show a use of Selective Replace we combine three Effects.

      In Slot 1 we have a Sky with Clouds with default values but Output Color 1 set to Ignore and Output Color 2 set to Replace. On the Control Pane Color 1 is set to white and Color 2 is set to a sky blue. In Slot 2 we have our Arches National Park photo loaded via a Texture Effect with default values:

      In Slot 3 we place our Selective Replace with Red Minimum set to 0, Red Maximum set to 128, Green Minimum set to 88, Green Maximum set to 255, Blue Minimum set to 0, and Blue Maximum set to 255. This is the result:

      You can see that we selected to replace the sky of the Photo with our Sky with Clouds Effect.

      Note that if we had changed the Slot order of the Sky with Clouds and Texture we would have ended up with a comletely different Effect. Sky with Clouds requires Color 1 and Color 2 to set the cloud/sky color. If Texture was first, it would have replaced Color 1 causing the clouds to be the same as the Texture. This is a good example that slot order is very important.

       

      Previous SectionHide ContentsNext Section

    pena © 2014 by David Cook
    Apple®, the Apple logo, iPad, iPad Air, iPad Mini, iPod, iPhone, and iTunes
    are trademarks of Apple Inc., registered in the U.S. and other countries.
    Wacom®, and Wacom Intuos Creative Stylus are trademarks of Wacom, registered in the U.S and other countries.