Jump to content

Background images: Difference between revisions

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><code>state.background = {</code>
You can render images on any world by pasting the following script into the console:<blockquote>
<syntaxhighlight lang="javascript">state.background = {


<code>    path: "[image URL]"</code>
path: "[image URL]"
};


<code>};</code>
loadBackgroundData(function() {


<code>loadBackgroundData(function() {</code>
    w.redraw()
}, function() {


<code>    w.redraw()</code>
    w.redraw()


<code>}, function() {</code>
});
 
</syntaxhighlight>
<code>    w.redraw()</code>
</blockquote>The image will only show up on your end, of course.<gallery widths="200" heights="180">
 
<code>});</code></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].