Setvirtualresolution(640,480)
ResetTimer()
CreateText(1,"Example Text")
SetTextSize(1,35)
SetTextPosition(1,8,80)
//The 'm' is character 3 in the example text (range starts at 0)
//Set 'm' character to a random color/alpha value
SetTextCharColor( 1,3, Random(0,255), Random(0,255), Random(0,255), Random(100,255) )
//Get and display the current Green component value
Repeat
Print ("The Green Component Value of 'm'= "+Str(GetTextCharColorGreen(1,3)))
Sync()
Until Timer()>12
End
Help make AGK better by submitting an example for this command! (All examples are subject to approval)
Setvirtualresolution(640,480) ResetTimer() CreateText(1,"Example Text") SetTextSize(1,35) SetTextPosition(1,8,80) //The 'm' is character 3 in the example text (range starts at 0) //Set 'm' character to a random color/alpha value SetTextCharColor( 1,3, Random(0,255), Random(0,255), Random(0,255), Random(100,255) ) //Get and display the current Green component value Repeat Print ("The Green Component Value of 'm'= "+Str(GetTextCharColorGreen(1,3))) Sync() Until Timer()>12 End