Changeset 33180 in project
 Timestamp:
 02/13/16 16:22:04 (4 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

wiki/eggref/4/sdl2
r33179 r33180 530 530 531 531 532 <procedure>(colorscale color scale) â sdl2:color</procedure>533 <procedure>(colourscale color scale) â sdl2:color</procedure>534 <procedure>(colorscale! color scale#!optional dest) â dest</procedure>535 <procedure>(colourscale! color scale#!optional dest) â dest</procedure>536 537 Efficiently scale (multiply) the RGBA values of {{color}} by {{scale}} (a float or integer).538 E.g. {{ scale}} 0.5 halves the RGBA values, {{scale}} 2.0 doubles the values.532 <procedure>(colorscale color factor) â sdl2:color</procedure> 533 <procedure>(colourscale color factor) â sdl2:color</procedure> 534 <procedure>(colorscale! color factor #!optional dest) â dest</procedure> 535 <procedure>(colourscale! color factor #!optional dest) â dest</procedure> 536 537 Efficiently multiply the RGBA values of {{color}} by {{factor}} (a float or integer). 538 E.g. {{factor}} 0.5 halves the RGBA values, {{factor}} 2.0 doubles the values. 539 539 540 540 * {{colorscale}} and {{colourscale}} return a new managed sdl2:color. … … 3359 3359 3360 3360 3361 <procedure>(rectscale rect scale) â sdl2:rect</procedure>3362 <procedure>(rectscale! rect scale#!optional dest) â dest</procedure>3363 3364 Efficiently scale (multiply) the X, Y, W, and H values of {{rect}} by {{scale}} (a float or integer).3365 E.g. {{ scale}} 0.5 halves the values, {{scale}} 2.0 doubles the values.3361 <procedure>(rectscale rect factor) â sdl2:rect</procedure> 3362 <procedure>(rectscale! rect factor #!optional dest) â dest</procedure> 3363 3364 Efficiently multiply the X, Y, W, and H values of {{rect}} by {{factor}} (a float or integer). 3365 E.g. {{factor}} 0.5 halves the values, {{factor}} 2.0 doubles the values. 3366 3366 sdl2:rect can only hold integer values, so the results will be truncated to integers. 3367 3367 The results will be clamped to the range 2147483648 to 2147483647. … … 3369 3369 * {{rectscale}} returns a new managed sdl2:rect. 3370 3370 * {{rectscale!}} modifies and returns {{dest}}. 3371 If {{dest}} is omitted, {{rect}} is modified and returned. 3372 3373 These procedures are available in '''sdl2 egg version 0.2.0 and higher'''. 3374 3375 3376 <procedure>(rectunscale rect factor) â sdl2:rect</procedure> 3377 <procedure>(rectunscale! rect factor #!optional dest) â dest</procedure> 3378 3379 Efficiently divide the X, Y, W, and H values of {{rect}} by {{factor}} (a float or integer). 3380 This is equivalent to {{(rectscale rect (/ 1 factor))}}, 3381 but is more convenient and efficient (especially if {{factor}} is an integer). 3382 3383 These procedures signal an error if {{factor}} is 0. 3384 sdl2:rect can only hold integer values, so the results will be truncated to integers. 3385 The results will be clamped to the range 2147483648 to 2147483647. 3386 3387 * {{rectunscale}} returns a new managed sdl2:rect. 3388 * {{rectunscale!}} modifies and returns {{dest}}. 3371 3389 If {{dest}} is omitted, {{rect}} is modified and returned. 3372 3390 … … 3615 3633 3616 3634 3617 <procedure>(pointscale point scale) â sdl2:point</procedure>3618 <procedure>(pointscale! point scale#!optional dest) â dest</procedure>3619 3620 Efficiently scale (multiply) the X and Y values of {{point}} by {{scale}} (a float or integer).3621 E.g. {{ scale}} 0.5 halves the values, {{scale}} 2.0 doubles the values.3635 <procedure>(pointscale point factor) â sdl2:point</procedure> 3636 <procedure>(pointscale! point factor #!optional dest) â dest</procedure> 3637 3638 Efficiently multiply the X and Y values of {{point}} by {{factor}} (a float or integer). 3639 E.g. {{factor}} 0.5 halves the values, {{factor}} 2.0 doubles the values. 3622 3640 sdl2:point can only hold integer values, so the results will be truncated to integers. 3623 3641 The results will be clamped to the range 2147483648 to 2147483647. … … 3627 3645 * {{pointscale}} returns a new managed sdl2:point. 3628 3646 * {{pointscale!}} modifies and returns {{dest}}. 3647 If {{dest}} is omitted, {{point}} is modified and returned. 3648 3649 3650 <procedure>(pointunscale point factor) â sdl2:point</procedure> 3651 <procedure>(pointunscale! point factor #!optional dest) â dest</procedure> 3652 3653 Efficiently divide the X and Y values of {{point}} by {{factor}} (a float or integer). 3654 This is equivalent to {{(pointscale point (/ 1 factor))}}, 3655 but is more convenient and efficient (especially if {{factor}} is an integer). 3656 3657 These procedures signal an error if {{factor}} is 0. 3658 sdl2:point can only hold integer values, so the results will be truncated to integers. 3659 The results will be clamped to the range 2147483648 to 2147483647. 3660 3661 These procedures are available in '''sdl2 egg version 0.2.0 and higher'''. 3662 3663 * {{pointunscale}} returns a new managed sdl2:point. 3664 * {{pointunscale!}} modifies and returns {{dest}}. 3629 3665 If {{dest}} is omitted, {{point}} is modified and returned. 3630 3666
Note: See TracChangeset
for help on using the changeset viewer.