Difference between revisions of "gc:setPen"

From Inspired-Lua Wiki
Jump to navigation Jump to search
(Created page with " '''setPen''' is a function that is part of gc. Sets the pen for drawing lines and borders. <br /> {{Since|3.0}} ==Syntax== gc:'''setPen'''([thickness[, style...")
 
 
(3 intermediate revisions by 2 users not shown)
Line 11: Line 11:
 
If the thickness is not specified, it defaults to ”thin.”, and if the style is not specified, it defaults to ”smooth.”  
 
If the thickness is not specified, it defaults to ”thin.”, and if the style is not specified, it defaults to ”smooth.”  
 
   
 
   
 
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
 
! Parameter !! Type !! Description
 
! Parameter !! Type !! Description
 
|-
 
|-
| <u><center>thickness</center></u> || string || Optional. Can be "thick", "medium" or "thick"  
+
| <u><center>thickness</center></u> || string || Optional. Can be "thin", "medium", or "thick". "extra-thick" works but is undocumented
 
|-
 
|-
 
| <u><center>style</center></u> || string || Optional. Can be "smooth", "dotted", "dashed"  
 
| <u><center>style</center></u> || string || Optional. Can be "smooth", "dotted", "dashed"  

Latest revision as of 05:59, 11 March 2015

setPen is a function that is part of gc.

Sets the pen for drawing lines and borders.


This has been introduced in TI-Nspire OS 3.0 (Changes).


Syntax

gc:setPen([thickness[, style]])

If the thickness is not specified, it defaults to ”thin.”, and if the style is not specified, it defaults to ”smooth.”

Parameter Type Description
thickness
string Optional. Can be "thin", "medium", or "thick". "extra-thick" works but is undocumented
style
string Optional. Can be "smooth", "dotted", "dashed"

Example

gc:setPen("thick","dotted")