Jump to content

Background images: Difference between revisions

Line 64: Line 64:


[[AndreiXYZ]] claimed [https://ourworldoftext.com/other /other] in June of 2021 and is now technically the owner of all files stored under the namespace.  
[[AndreiXYZ]] claimed [https://ourworldoftext.com/other /other] in June of 2021 and is now technically the owner of all files stored under the namespace.  
You can render images on any world by pasting the following script into the console: <blockquote><code>state.background = {</code>
<code>    path: "[image URL]"</code>
<code>};</code>
<code>loadBackgroundData(function() {</code>
<code>    w.redraw()</code>
<code>}, function() {</code>
<code>    w.redraw()</code>
<code>});</code></blockquote>
=== Worlds ===
=== Worlds ===


Line 126: Line 109:
<gallery widths="200" heights="150">
<gallery widths="200" heights="150">
File:Donut of publicity.png|Donut of Publicity for April Fools 2021
File:Donut of publicity.png|Donut of Publicity for April Fools 2021
</gallery>
== Background images script ==
You can render images on any world by pasting the following script into the console:<blockquote><code>state.background = {</code>
<code>    path: "[image URL]"</code>
<code>};</code>
<code>loadBackgroundData(function() {</code>
<code>    w.redraw()</code>
<code>}, function() {</code>
<code>    w.redraw()</code>
<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 jangbat.png|Using [https://leopard.hosting.pecon.us/dl/seubt/partytime.gif a gif] by [[Jamel]]. Only the first frame is rendered.
File:Background image script ywot.png|Using [https://wiki.ourworldoftext.com/images/2/28/1kImageBlack4k.jpg a large screenshot] of the [[YWOT]] mainpage.
File:Background image script eyes.png|Using an image from the internet.
</gallery>
</gallery>