Edit

Share via


SKSpriteNode.FromColor Method

Definition

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

color
UIColor

To be added.

This parameter can be null.

size
CGSize

Returns

Attributes

Applies to