SKSpriteNode.FromColor Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
FromColor(NSColor, CGSize) | |
FromColor(UIColor, CGSize) |
Creates a new sprite node with the specified size and color. |
FromColor(NSColor, CGSize)
[Foundation.Export("spriteNodeWithColor:size:")]
public static SpriteKit.SKSpriteNode FromColor (AppKit.NSColor color, CoreGraphics.CGSize size);
static member FromColor : AppKit.NSColor * CoreGraphics.CGSize -> SpriteKit.SKSpriteNode
Parameters
- color
- NSColor
- size
- CGSize
Returns
- Attributes
Applies to
FromColor(UIColor, CGSize)
Creates a new sprite node with the specified size and color.
[Foundation.Export("spriteNodeWithColor:size:")]
public static SpriteKit.SKSpriteNode FromColor (UIKit.UIColor color, CoreGraphics.CGSize size);
static member FromColor : UIKit.UIColor * CoreGraphics.CGSize -> SpriteKit.SKSpriteNode
Parameters
- size
- CGSize
Returns
- Attributes