Tool PSHADOW
From RealWorld Wiki
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. Afterwards, 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.
[edit] 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.
[edit] Example
// scale the netire image to half and rotate it by 45 degrees Document.PSHADOW(Document, 5, 10, 50, 30, 50, 90, 50, 0, 100, 100, 100);
