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
| Name | Description |
|---|---|
| FromColor(NSColor, CGSize) | |
| FromColor(UIColor, CGSize) |
FromColor(NSColor, CGSize)
[Foundation.Export("spriteNodeWithColor:size:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static SpriteKit.SKSpriteNode FromColor(AppKit.NSColor color, CoreGraphics.CGSize size);
[<Foundation.Export("spriteNodeWithColor:size:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member FromColor : AppKit.NSColor * CoreGraphics.CGSize -> SpriteKit.SKSpriteNode
Parameters
- color
- NSColor
- size
- CGSize
Returns
- Attributes
Applies to
FromColor(UIColor, CGSize)
[Foundation.Export("spriteNodeWithColor:size:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static SpriteKit.SKSpriteNode FromColor(UIKit.UIColor color, CoreGraphics.CGSize size);
[<Foundation.Export("spriteNodeWithColor:size:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member FromColor : UIKit.UIColor * CoreGraphics.CGSize -> SpriteKit.SKSpriteNode
Parameters
- color
- UIColor
- size
- CGSize
Returns
- Attributes