Page 1 of 1

Nyx - Background Color Change

Posted: Tue Mar 27, 2018 12:24 am
by Sissy Elise
Here is how to change the background color in nyx:
background 1.png
background 1.png (124.2 KiB) Viewed 1136 times
Create or download an image with the background color you wish to use and upload it in nyx or an external server.
Then use this code:

Code: Select all

start#page(
'Testing this out',
mult(
text(<img src="https://s3.amazonaws.com/media.milovana.com/timg/tb_l/971c1f3efc03aeed47ab4c09363fce36268d521d.jpg" height="2000" width="2000"></img>),

horiz(
text(<br/><br/><font color="#000000"><b>This is a layout test</b></font>),
text( <img hspace="100" src="https://s3.amazonaws.com/media.milovana.com/timg/tb_l/6bc4ad5257fa71ad67ff27eb0d78b38cc76c5a9e.jpg" height="360" width="240"></img>),
vert(
text(<br/><br/><font color="#000000"><b>More Text</b></font>),
buttons(page2#,"<font color="#FFFFFF" size="15"><b>Test</b></font>")
)
)

)
);
https://s3.amazonaws.com/media.milovana ... 8d521d.jpg is the pink image url.

Note that the layout looks sightly different in nyx to the flashtease player.
You can view it in the flashtease player without publishing it by going to this address:
https://milovana.com/webteases/showteas ... view=1&id=
(Place your tease id at the end - this can be found at the top of nyx)


Unfortunately it only covers 3/4 of the screen, however you can place another image in that section although it looks strange:
background 2.png
background 2.png (123.49 KiB) Viewed 1135 times
This does stop you from putting text in there - although you could put the text on the image.
Maybe your tease logo?

Code: Select all

start#page(
'<img src="https://s3.amazonaws.com/media.milovana.com/timg/tb_l/971c1f3efc03aeed47ab4c09363fce36268d521d.jpg" height="2000" width="2000"></img>',
mult(
text(<img src="https://s3.amazonaws.com/media.milovana.com/timg/tb_l/971c1f3efc03aeed47ab4c09363fce36268d521d.jpg" height="2000" width="2000"></img>),
horiz(
text(<br/><br/><font color="#000000"><b>This is a layout test</b></font>),
text( <img hspace="100" src="https://s3.amazonaws.com/media.milovana.com/timg/tb_l/6bc4ad5257fa71ad67ff27eb0d78b38cc76c5a9e.jpg" height="360" width="240"></img>),
vert(
text(<br/><br/><b><font color="#000000">More Text</b></font>),
buttons(page2#,"<font color="#FFFFFF" size="15"><b>Test</b></font>")
)
)
)
);