≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Some screen transition animations and filters
Posted by:
(you are not logged in)
Enter the missing letter in: "Internati?nal"
(you are not logged in)
Text:
[quote][b][/b] wrote: There are more functions that can be found in the documentation. Documentation Version 1.1 GetColorFromARGB(a,r,g,b) Get color from Alpha, Red, Green and Blue. GetColorFromRGB(r,g,b) Get color from Red, Green and Blue. GetColorFromHex(hex) Get color from hex text. For example: GetColorFromHex("FFFFFF") or GetColorFromHex("FFFFFF") GetColorFromName(name) Get color from name. For example: GetColorFromName("white") For the name you can see the HTML color name. GetARGBFromColor(color) Get Alpha, Red, Green and Blue from color. The return value structure is {a:0,r:0,g:0,b:0}. GetRGBFromColor(color) Get Red, Green and Blue from color. The return value structure is {r:0,g:0,b:0}. DrawRect(color,x,y,width,height,opacity) Draw a rectangle. The opacity is an optional parameter. When opacity is not set, transparency is based on color. DrawCircle(color,x,y,radius,opacity) Draw a circle. X and Y are the center point. The opacity is an optional parameter. When opacity is not set, transparency is based on color. DrawLine(color,point1,point2,opacity) Draw a line. The point structure is {x:0,y:0}. The opacity is an optional parameter. When opacity is not set, transparency is based on color. GetTime() Return the current time(millisecond). GetRunTime() Return the game run time(millisecond). GetStartTime() Return the game start time(millisecond). GetDeltaTime() Return the spent time(second) per frame. GetFrameRate() Return the current frame rate. SetFrameRate(frameRate) Set the current frame rate of the game. This function can't change the maximum frame rate of the game. If your game is not 60 fps, you need to use this function to adjust the reference frame rate of the Sakura Function Library and improve the accuracy of the calculation. FadeInOut(color,time,type,maxRatio,opacity) Fade in/out transition animation. time(second) is the duration of the transition animation. type includes: In,Out,InOut maxRatio controls the maximum play ratio. The opacity is an optional parameter. When opacity is not set, transparency is based on color. IsFadeInOutStop() Return the fade in/out transition animation playing status, true means it is playing, false means it is stopped. ClearFadeInOut() Clear the fade in/out transition animation. PureColorFilter(color,opacity) Single color filter. The opacity is an optional parameter. When opacity is not set, transparency is based on color. ClearPureColorFilter() Clear the pure color filter. FlyInOut(color,time,type,opacity,maxRatio) Fly in/out transition animation. time(second) is the duration of the transition animation. type includes: LeftIn,LeftOut,LeftInOut,RightIn,RightOut,RightInOut,TopIn,TopOut,TopInOut, BottomIn,BottomOut,BottomInOut,LeftInRightOut,RightInLeftOut,TopInBottomOut,BottomInTopOut maxRatio controls the maximum play ratio. The opacity is an optional parameter. When opacity is not set, transparency is based on color. IsFlyInOutStop() Return the fly in/out transition animation playing status, true means it is playing, false means it is stopped. ClearFlyInOut() Clear the fly in/out transition animation. RectInOut(color,time,type,opacity,maxRatio) Rectangle in/out transition animation. time(second) is the duration of the transition animation. type includes: In,Out,InOut,InvertIn,InvertOut,InvertInOut maxRatio controls the maximum play ratio. The opacity is an optional parameter. When opacity is not set, transparency is based on color. IsRectInOutStop() Return the rectangle in/out transition animation playing status, true means it is playing, false means it is stopped. ClearRectInOut() Clear the rectangle in/out transition animation. Rand(min,max) Returns a random number between the minimum and maximum value. RandInt(min,max) Returns a random number(Int) including the minimum and maximum values. MosaicFilter(opacity,colorArray) Random mosaic filter[/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact