Projected shadow drawing tool

Log-in or register.

Projected shadow drawing tool

rsrc/shadow-tool.png image PSHADOW is a drawing tool capable of adding a shadow to an image. The shadow is blurred and deformed by perspective projection. If selection exists, only the selected part will cast shadow. Otherwise, the shadow is cast by any opaque pixel.

The shape of the shadow is initially defined by dragging with left mouse button from a point where the object should touch ground upwards. Afterward, the shape of the shadow can be modified by control handles. Sharpens and density of the shadow at the upper (far) and lower (near) part is defined in the configuration.

rsrc/shadow-tool-config.png image

Scripting parameters

PSHADOW tool can be used from scripts. The command in script must have 11 parameters:

  • blur - blur radius (lower value = sharper shadow).
  • far_density - in %.
  • near_density - in %.
  • coords - 4 x and y coordinates of the shadow rectangle.

Example

DrawTool.PSHADOW(Document, 5, 10, 50, 30, 50, 90, 50, 0, 100, 100, 100);

See also: DrawTool object, Document object

Recent comments

user icon Anonymous
Select background









Vista & Win 7 icons