diff --git a/225-arrow.png b/225-arrow.png deleted file mode 100644 index e7c59e29..00000000 Binary files a/225-arrow.png and /dev/null differ diff --git a/315-arrow.png b/315-arrow.png deleted file mode 100644 index 969d02d0..00000000 Binary files a/315-arrow.png and /dev/null differ diff --git a/create-pointer.sh b/create-pointer.sh index 64b3c7d6..f4834787 100755 --- a/create-pointer.sh +++ b/create-pointer.sh @@ -2,17 +2,18 @@ # outputfolder="docs/img/overlays" -if [[ ! -d "$outputfolder" ]] -then - mkdir -p "$outputfolder" +if [[ ! -d "$outputfolder" ]]; then + mkdir -p "$outputfolder" fi +# Create base arrow image convert -size 72x384 \ xc:transparent \ -strokewidth 0 \ -stroke red \ -fill red \ - -draw "polygon 36,4 4,76 27,65 27,380 45,380 45,65 68,76" \ + -draw "ellipse 36,371 9,9 0,360" \ + -draw "polygon 36,4 4,76 27,65 27,371 45,371 45,65 68,76" \ ${outputfolder}/pointer.png width=10 @@ -20,54 +21,53 @@ wfact=$((1000 * width)) depth=40 icontr=$(convert xc: -format "%[fx:(0.5*$depth-100)]" info:) -for entry in 0 45 90 135 180 225 270 315 -do - # Rotate the pointer - convert -rotate ${entry} -background 'rgba(0,0,0,0)' ${outputfolder}/pointer.png ${outputfolder}/pointer-${entry}.png +for entry in 0 45 90 135 180 225 270 315; do + # Rotate the pointer + convert -rotate ${entry} -background 'rgba(0,0,0,0)' ${outputfolder}/pointer.png ${outputfolder}/pointer-${entry}.png - # Add the bezel - convert ${outputfolder}/pointer-${entry}.png -bordercolor none -border 10x10 -write mpr:img \ - -alpha extract -write mpr:alpha \ - +level 0,1000 -white-threshold 999 \ - -morphology Distance:-1 Euclidean:$width,1000 -level 0,"$wfact" \ - -shade 120x45 -auto-level -brightness-contrast 0,"$icontr" \ - \( +clone -fill "gray(50%)" -colorize 100% \) +swap \( mpr:alpha -threshold 0 \) \ - -compose over -composite \ - \( mpr:img -alpha off \) +swap -compose hardlight -composite \ - mpr:alpha -alpha off -compose copy_opacity -composite \ - -shave 10x10 \ - tmp.png - mv tmp.png ${outputfolder}/pointer-${entry}.png + # Add the bevel + convert ${outputfolder}/pointer-${entry}.png -bordercolor none -border 10x10 -write mpr:img \ + -alpha extract -write mpr:alpha \ + +level 0,1000 -white-threshold 999 \ + -morphology Distance:-1 Euclidean:$width,1000 -level 0,"$wfact" \ + -shade 120x45 -auto-level -brightness-contrast 0,"$icontr" \ + \( +clone -fill "gray(50%)" -colorize 100% \) +swap \( mpr:alpha -threshold 0 \) \ + -compose over -composite \ + \( mpr:img -alpha off \) +swap -compose hardlight -composite \ + mpr:alpha -alpha off -compose copy_opacity -composite \ + -shave 10x10 \ + tmp.png + mv tmp.png ${outputfolder}/pointer-${entry}.png - # Add a white border - convert ${outputfolder}/pointer-${entry}.png \ - -bordercolor none -border 20 \ - \( -clone 0 -fill white -colorize 100 \) \ - \( -clone 0 -alpha extract -write mpr:alpha -morphology edgeout disk:2 \) \ - -alpha off -compose over -composite \ - \( mpr:alpha -morphology dilate disk:2 \) \ - -alpha off -compose copy_opacity -composite \ - tmp.png - mv tmp.png ${outputfolder}/pointer-${entry}.png + # Add a white border + convert ${outputfolder}/pointer-${entry}.png \ + -bordercolor none -border 20 \ + \( -clone 0 -fill white -colorize 100 \) \ + \( -clone 0 -alpha extract -write mpr:alpha -morphology edgeout disk:2 \) \ + -alpha off -compose over -composite \ + \( mpr:alpha -morphology dilate disk:2 \) \ + -alpha off -compose copy_opacity -composite \ + tmp.png + mv tmp.png ${outputfolder}/pointer-${entry}.png - # Add a black border - convert ${outputfolder}/pointer.png \ - -bordercolor none -border 20 \ - \( -clone 0 -fill black -colorize 100 \) \ - \( -clone 0 -alpha extract -write mpr:alpha -morphology edgeout disk:1 \) \ - -alpha off -compose over -composite \ - \( mpr:alpha -morphology dilate disk:1 \) \ - -alpha off -compose copy_opacity -composite \ - tmp.png - mv tmp.png ${outputfolder}/pointer-${entry}.png + # Add a black border + convert ${outputfolder}/pointer-${entry}.png \ + -bordercolor none -border 20 \ + \( -clone 0 -fill black -colorize 100 \) \ + \( -clone 0 -alpha extract -write mpr:alpha -morphology edgeout disk:1 \) \ + -alpha off -compose over -composite \ + \( mpr:alpha -morphology dilate disk:1 \) \ + -alpha off -compose copy_opacity -composite \ + tmp.png + mv tmp.png ${outputfolder}/pointer-${entry}.png - # Add the drop shadow - convert ${outputfolder}/pointer-${entry}.png \ - \( +clone -background black -shadow 50x10+10+10 \) \ - +swap \ - -background none \ - -layers merge \ - +repage \ - tmp.png - mv tmp.png ${outputfolder}/pointer-${entry}.png + # Add the drop shadow + convert ${outputfolder}/pointer-${entry}.png \ + \( +clone -background black -shadow 50x10+10+10 \) \ + +swap \ + -background none \ + -layers merge \ + +repage \ + tmp.png + mv tmp.png ${outputfolder}/pointer-${entry}.png done diff --git a/docs/img/overlays/pointer-0.png b/docs/img/overlays/pointer-0.png new file mode 100644 index 00000000..669cb8f2 Binary files /dev/null and b/docs/img/overlays/pointer-0.png differ diff --git a/docs/img/overlays/pointer-135.png b/docs/img/overlays/pointer-135.png new file mode 100644 index 00000000..2b9e50fa Binary files /dev/null and b/docs/img/overlays/pointer-135.png differ diff --git a/docs/img/overlays/pointer-180.png b/docs/img/overlays/pointer-180.png new file mode 100644 index 00000000..ccddd087 Binary files /dev/null and b/docs/img/overlays/pointer-180.png differ diff --git a/docs/img/overlays/pointer-225.png b/docs/img/overlays/pointer-225.png new file mode 100644 index 00000000..ac4e0d1d Binary files /dev/null and b/docs/img/overlays/pointer-225.png differ diff --git a/docs/img/overlays/pointer-270.png b/docs/img/overlays/pointer-270.png new file mode 100644 index 00000000..ef382900 Binary files /dev/null and b/docs/img/overlays/pointer-270.png differ diff --git a/docs/img/overlays/pointer-315.png b/docs/img/overlays/pointer-315.png new file mode 100644 index 00000000..68fe1ac6 Binary files /dev/null and b/docs/img/overlays/pointer-315.png differ diff --git a/docs/img/overlays/pointer-45.png b/docs/img/overlays/pointer-45.png new file mode 100644 index 00000000..1500b48e Binary files /dev/null and b/docs/img/overlays/pointer-45.png differ diff --git a/docs/img/overlays/pointer-90.png b/docs/img/overlays/pointer-90.png new file mode 100644 index 00000000..933d76c4 Binary files /dev/null and b/docs/img/overlays/pointer-90.png differ diff --git a/docs/img/overlays/pointer.png b/docs/img/overlays/pointer.png new file mode 100644 index 00000000..5acd93d5 Binary files /dev/null and b/docs/img/overlays/pointer.png differ diff --git a/github-fork-border.png b/github-fork-border.png deleted file mode 100644 index 29bbb608..00000000 Binary files a/github-fork-border.png and /dev/null differ diff --git a/github-profile-border.png b/github-profile-border.png deleted file mode 100644 index a8eed179..00000000 Binary files a/github-profile-border.png and /dev/null differ