Code: Select all
convert ^
-size 5x5 ^
-define gradient:direction=West ^
gradient: ^
-scale 5000%% ^
grad_bug.png
As can be seen, the top-right pixel is the wrong colour.
This also happens at other sizes.
Code: Select all
convert ^
-size 5x5 ^
-define gradient:direction=West ^
gradient: ^
-scale 5000%% ^
grad_bug.png
Code: Select all
convert -size 5x5 gradient: -rotate 90 -scale 5000% result.png
Code: Select all
magick ^
-gravity center -pointsize 48 -fill tan -bordercolor tan -size 5x5 ^
( -define gradient:direction=north gradient: -scale 3000% -annotate +0+0 "N" ) ^
( -define gradient:direction=east gradient: -scale 3000% -annotate +0+0 "E" ) ^
( -define gradient:direction=south gradient: -scale 3000% -annotate +0+0 "S" ) ^
( -define gradient:direction=west gradient: -scale 3000% -annotate +0+0 "W" ) ^
-border 4x4 +append -border 4x4 grad_bug.png
Code: Select all
magick ^
-gravity center -pointsize 48 -fill tan -bordercolor tan -size 5x5 ^
( -define gradient:direction=northeast gradient: -scale 3000% -annotate +0+0 "NE" ) ^
( -define gradient:direction=southeast gradient: -scale 3000% -annotate +0+0 "SE" ) ^
( -define gradient:direction=northwest gradient: -scale 3000% -annotate +0+0 "NW" ) ^
( -define gradient:direction=southwest gradient: -scale 3000% -annotate +0+0 "SW" ) ^
-border 4x4 +append -border 4x4 grad_diag.png