View Single Post
Old 03-29-2019, 03:28 PM   #209
PoP
 curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.
 
PoP's Avatar
 
Posts: 3,018
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
1.13.0 My K3 thanks you again!


Just curious, probably an intentional optimization; but the effect I was attempting with:
Code:
#!/bin/sh
#glow v0.10 2019-03-29 ==============================
#Display glowing "GLOW" using NiLuJe's fbink color features
# ʇɟǝןʎdoƆ (ↄ) PoP under Creative Commons Attribution-ShareAlike 3.0 Unported License
#Usage: glow
# currently using fbink 1.13.0

#keep the Kindle quiet
lipc-set-prop com.lab126.powerd preventScreenSaver 1  #disable screen saver
killall -stop cvm #stop framework

n=1 #repetition number
i=0 #starting color number
j=1 #color increment

while :; do

  case $i in
    0) COL="BLACK" ;;
  15) COL="WHITE" ;;
    *) COL="GRAY""$(printf  "%1x" $i)" ;;
  esac

  fbink -S 5 -F BLOCK -C $COL -O -M -m "GLOW"
#screenshot
  usleep 500000 

  i=$((i+j))
  if [ $i -gt 15 ] || [ $i -lt 0 ]; then j=$((-j)); n=$((n+1));  i=$((i+j+j)); fi
  if [ $n -eq 3 ]; then break; fi  #after glowing n times

done

#restore Kindle verbosity
lipc-set-prop com.lab126.powerd preventScreenSaver 0 #enable screen saver
killall -cont cvm #restart framework
... is ruined. The text was supposed to "glow" like this:
Click image for larger version

Name:	glow.gif
Views:	208
Size:	135.0 KB
ID:	170471

But fbink seems to write the text in two pass, first it writes the text in black, then it updates the color map to the specified color. I couldn't smoothly fade-out / fade-in my text.
PoP is offline   Reply With Quote