Hello again,
Recently, I've tried drawing a Sun using this thread as a reference.
http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=9303
However, I can't seem to figure out how to get rid of the black shadow around the outer edge of it.
I want to be able to keep the inner shadow part of it.
Reason I need it like this is because I have it transparent and it looks a bit funky with that shadow on the outer part.
I've tried quite a few things to fix this, but can't seem to figure it out. Or maybe I've been at this for too long and my brain is scrambled stuck thinking down one direction.
Recently, I've tried drawing a Sun using this thread as a reference.
http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=9303
However, I can't seem to figure out how to get rid of the black shadow around the outer edge of it.
I want to be able to keep the inner shadow part of it.
Reason I need it like this is because I have it transparent and it looks a bit funky with that shadow on the outer part.
I've tried quite a few things to fix this, but can't seem to figure it out. Or maybe I've been at this for too long and my brain is scrambled stuck thinking down one direction.
-- main result window
win5 = GetPluginID () .. ".5"
WindowCreate (win5, 0, 0, 20, 20, 7, 4, 0x000000) -- create window
-- gradient window
win6 = GetPluginID () .. ".6"
WindowCreate (win6, 0, 0, 20, 20, 7, 4, ColourNameToRGB("white")) -- create window
WindowGradient (win6, 0, 0, 0, 0,
ColourNameToRGB ("yellow"),
ColourNameToRGB ("red"),
2) -- top to bottom
-- mask window
win7 = GetPluginID () .. ".7"
WindowCreate (win7, 0, 0, 20, 20, 7, 4, ColourNameToRGB("black")) -- create window
-- chord
WindowCircleOp (win7, 4, 0, 0, 20, 20,
ColourNameToRGB("black"), 5, 0, -- no pen
ColourNameToRGB("white"), 0, -- brush
0, 0)
-- convert to images
WindowImageFromWindow (win5, "gradient", win6)
WindowImageFromWindow (win5, "mask", win7)
-- do the merge
WindowMergeImageAlpha (win5, "gradient", "mask", 0, 1, 20, 20, 0, 1, 0, 0, 0, 0)
WindowFilter (win5, 0, 0, 0, 0, 3, 0) -- blur both directions
WindowShow (win5, true) -- show it