Jump to content

Background images: Difference between revisions

Guest-1052 (talk | contribs)
use syntaxhighlight instead of the sloppy <code> thing
 
(5 intermediate revisions by one other user not shown)
Line 44: Line 44:
* [https://ourworldoftext.com/blugars_world /blugars_world](Requested by Colton on May 9th, 2019)
* [https://ourworldoftext.com/blugars_world /blugars_world](Requested by Colton on May 9th, 2019)
* [https://ourworldoftext.com/pizzatower /pizzatower](Requested by Colton on April 3rd, 2020)
* [https://ourworldoftext.com/pizzatower /pizzatower](Requested by Colton on April 3rd, 2020)
=== Test server ===
* [https://test.ourworldoftext.com/test2 test.ourworldoftext.com/test2]


=== Instances of background images on [[/|The Mainpage]] ===
=== Instances of background images on [[/|The Mainpage]] ===
Line 113: Line 117:
* [https://ourworldoftext.com/other/backgrounds/me_pointing.png/ /other/backgrounds/me_pointing.png/](Elon Musk image for April Fools 2024)
* [https://ourworldoftext.com/other/backgrounds/me_pointing.png/ /other/backgrounds/me_pointing.png/](Elon Musk image for April Fools 2024)
* [https://ourworldoftext.com/other/backgrounds/eop.png/ /other/backgrounds/eop.png/](Background pattern for the Center Console during Earth Day 2025)
* [https://ourworldoftext.com/other/backgrounds/eop.png/ /other/backgrounds/eop.png/](Background pattern for the Center Console during Earth Day 2025)
=== Test server ===
* [https://test.ourworldoftext.com/other/backgrounds/bubbles.png/ test.ourworldoftext.com/other/backgrounds/bubbles.png/](/test2)


=== ??? ===
=== ??? ===
Line 126: 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>
 
<code>};</code>


<code>loadBackgroundData(function() {</code>
path: "[image URL]"
};


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


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


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


<code>});</code></blockquote>The image will only show up on your end, of course.<gallery widths="200" heights="180">
});
</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].
Line 156: Line 165:
[[Category:Documentation]]
[[Category:Documentation]]
[[Category:Features inaccessible to regular users]]
[[Category:Features inaccessible to regular users]]
[[Category:Compilation pages]]