Palfrom: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Mblackwell (talk | contribs)
mNo edit summary
 
mNo edit summary
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
palfrom <intensity> <red> <green> <blue>
'''palfrom''' <intensity> <red> <green> <blue>


palfrom is used to flash the screen a given color.
This command is used to flash the screen a given color. It modifies the [[pals]] and [[pals_time]] members of the player structure.


<intensity> is a number from 0-63, denoting how opaque the color is. 0 is no color, 63 is full color.
== Parameters ==


<red> is a number from 0-63, denoting how red the color is. 0 is no red, 63 is full red.
{| {{prettytable}}
| <intensity> || is a number from 0-255, denoting how opaque the color is. 0 is fully transparent, and 63 is fully opaque. Any number above 63 prolongs the duration of full opaqueness.
|-
| <red> || is a number from 0-63, denoting how red the color is. 0 is no red, 63 is full red.
|-
| <green> || is a number from 0-63, denoting how green the color is. 0 is no green, 63 is full green.
|-
| <blue> || is a number from 0-63, denoting how blue the color is. 0 is no blue, 63 is full blue.
|}


<green> is a number from 0-63, denoting how green the color is. 0 is no green, 63 is full green.
== Examples ==


<blue> is a number from 0-63, denoting how blue the color is. 0 is no blue, 63 is full blue.
palfrom <intensity> 64 // Red
palfrom <intensity> 0 64 // Green
palfrom <intensity> 0 0 64 // Blue
palfrom <intensity> 32 16 // Brown
palfrom <intensity> 64 32 // Orange
palfrom <intensity> 64 64 // Yellow
palfrom <intensity> 64 0 64 // Purple
palfrom <intensity> 0 64 64 // Aqua
palfrom <intensity> 32 32 32 // Gray
palfrom <intensity> 64 64 64 // White
 
[[Category:Duke3D 1.3/1.5 commands]]
[[Category:Player manipulation]]

Latest revision as of 07:20, 20 September 2020

palfrom <intensity> <red> <green> <blue>

This command is used to flash the screen a given color. It modifies the pals and pals_time members of the player structure.

Parameters

<intensity> is a number from 0-255, denoting how opaque the color is. 0 is fully transparent, and 63 is fully opaque. Any number above 63 prolongs the duration of full opaqueness.
<red> is a number from 0-63, denoting how red the color is. 0 is no red, 63 is full red.
<green> is a number from 0-63, denoting how green the color is. 0 is no green, 63 is full green.
<blue> is a number from 0-63, denoting how blue the color is. 0 is no blue, 63 is full blue.

Examples

palfrom <intensity> 64 // Red
palfrom <intensity> 0 64 // Green
palfrom <intensity> 0 0 64 // Blue
palfrom <intensity> 32 16 // Brown
palfrom <intensity> 64 32 // Orange
palfrom <intensity> 64 64 // Yellow
palfrom <intensity> 64 0 64 // Purple
palfrom <intensity> 0 64 64 // Aqua
palfrom <intensity> 32 32 32 // Gray
palfrom <intensity> 64 64 64 // White