Change text size?

Pixilang programming language
User avatar
xaccrocheur
Posts: 77
Joined: Sat Feb 27, 2010 3:16 pm
Location: Africa
Contact:

Change text size?

Postby xaccrocheur » Tue Jun 17, 2014 7:28 pm

Hi

I'm trying to understand how to change the size of a string over the course of an animation.

Code: Select all

pixi( halo, x, y, col, scope_amp * 5, scope_amp / 32 )
name = dlcall( svl, sv_get_module_name, 0, i )
if name >= 0
{
   $xx = x * 256
   $xc = $xx & 255
   transp( ( $t * ( 255 - $xc ) ) >> 8 )
   print( name, x, y - 1, col, BOTTOM )
   transp( ( $t * $xc ) >> 8 )
   print( name, x + 1, y - 1, col, BOTTOM )
        // resize( halo, 128, 128 )
        transp( 256 )
   remove( name )
}


  • The manual says upstart "The basis of the Pixilang - are containers and variables." What type of objet is the string displayed on screen by the print() command? Is it a string variable in a container automatically created by dlcall() or by print() ? I was under the impression that a container must be created using new() so I'm confused
  • In this block of code, the transp() function changes the transparency of an object (over the lifetime of the object - the module name returned by sunvox's lib whose scope_amp value is > 0.2 - supposedly) but witch one, the halo, or the name?
  • How do animation methods work ? It looks like it acts upon the last object created by the pixi() function, am I right?
  • Please, excuse and feel free to correct any terminology mistake that I made in this message.
Yassin Philip - Check out My music =@

Return to “Pixilang”

Who is online

Users browsing this forum: No registered users and 1 guest