espterm / espterm-firmware

ESPTerm - ESP8266 terminal emulator. Branches: [master] patches, [work] next release
Mozilla Public License 2.0
127 stars 24 forks source link

possibility to have an image background #246

Closed MightyPork closed 7 years ago

MightyPork commented 7 years ago

a background picture from some external server - giving a room layout map or piping diagram URL should be definable dynamically by a controlmessage from the micro

The idea is to load an image behind the canvas as a background.

@cpsdqs do you think the renderer can be augmented to optionally don't draw default background and instead leave it transparent?

cpsdqs commented 7 years ago

technically you could even draw the background with canvas, yes

cpsdqs commented 7 years ago

I don't know why one would want this but it's possible now ¯\_(ツ)_/¯

screen shot 2017-10-06 at 23 30 47
MightyPork commented 7 years ago

the "why" is simple :P

ok, a more likely example:

cpsdqs commented 7 years ago

huh fair enough. Well, if you add it to the update string you can now just set termScreen.backgroundImage to the URL and everything should work fine (might need some CSS to fix scaling though)