[Cuis-dev] How to fill a triangle?

ken.dickey at whidbey.com ken.dickey at whidbey.com
Sun May 26 08:02:57 PDT 2019


On 2019-05-25 23:41, Philip Bernhart via Cuis-dev wrote:
> Hi,
> 
> I recently wanted to make a morph which draws
> a complex shape of itself and part of that is
> a triangle. And I have noticed that I don't
> know how to fill this triangle with color or
> how to implement that with GrafPort / BitBlt.
> 
> Suggestions? Experiences?

Philip,

In Morphic/Morphic-Misc1/DropShadow.cs.st look at the drop shadow form 
setup code in Morph.

E.g. #showDropShadow #shadowForm #setDropShadow

-KenD


More information about the Cuis-dev mailing list