Background images: Difference between revisions
Appearance
Guest-1052 (talk | contribs) use syntaxhighlight instead of the sloppy <code> thing |
|||
| Line 134: | Line 134: | ||
* [https://ourworldoftext.com/other/backgrounds/Bliss.png /other/backgrounds/Bliss.png](Windows XP background) | * [https://ourworldoftext.com/other/backgrounds/Bliss.png /other/backgrounds/Bliss.png](Windows XP background) | ||
== Background image script by FP == | == Background image script by FP == | ||
You can render images on any world by pasting the following script into the console:<blockquote>< | You can render images on any world by pasting the following script into the console:<blockquote> | ||
<syntaxhighlight lang="javascript">state.background = { | |||
path: "[image URL]" | |||
}; | |||
loadBackgroundData(function() { | |||
w.redraw() | |||
}, function() { | |||
w.redraw() | |||
}); | |||
</syntaxhighlight> | |||
</blockquote>The image will only show up on your end, of course.<gallery widths="200" heights="180"> | |||
File:Background image script eop.png|Using [https://ourworldoftext.com/other/backgrounds/eop.png/ /other/backgrounds/eop.png/]. | File:Background image script eop.png|Using [https://ourworldoftext.com/other/backgrounds/eop.png/ /other/backgrounds/eop.png/]. | ||
File:Background image script bliss.png|Using [https://ourworldoftext.com/other/backgrounds/Bliss.png /other/backgrounds/Bliss.png]. | File:Background image script bliss.png|Using [https://ourworldoftext.com/other/backgrounds/Bliss.png /other/backgrounds/Bliss.png]. | ||