This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"meta": { | |
"name": "Flower-Demo", | |
"creator": "@grifdail", | |
"creatorUrl": "https://twitter.com/grifdail/" | |
}, | |
"objects": [ | |
{ | |
"key": "475b3914-485b-4dc9-867a-7ddede9e7378", | |
"name": "object", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using UnityEngine; | |
using UnityEngine.EventSystems; | |
public class ClickEffect : MonoBehaviour, IPointerClickHandler | |
{ | |
public float RotationMax = 10; | |
public float DropMax = 10; | |
public float Duration = 0.2f; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function setup() { | |
createCanvas(16000, 16000); | |
noLoop(); | |
} | |
function draw() { | |
background(220); | |
drawSquare([0,0,0,0,0,0,0,0,0],0,0,width,height, 0); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
static class Vector2Swizzles { | |
// swizzle of size 2 | |
public static Vector2 Swizzle_xx(this Vector2 a) { return new Vector2(a.x, a.x); } | |
public static Vector2 Swizzle_xy(this Vector2 a) { return new Vector2(a.x, a.y); } | |
public static Vector2 Swizzle_x0(this Vector2 a) { return new Vector2(a.x, 0); } | |
public static Vector2 Swizzle_x1(this Vector2 a) { return new Vector2(a.x, 1); } | |
public static Vector2 Swizzle_yx(this Vector2 a) { return new Vector2(a.y, a.x); } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.topbar { | |
display: none; | |
} | |
.dashboard { | |
display: none; | |
} | |
.stream-container { | |
display: none; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class PlayerController : MonoBehaviour { | |
public float speed = 10; | |
public float frequency = 1; | |
public FootTarget leftFoot; | |
public FootTarget rightFoot; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
color black = #000000; | |
color darkBlue = #1D2B53; | |
color darkPurple = #7E2553; | |
color darkGreen = #008751; | |
color brown = #AB5236; | |
color darkGray = #5F574F; | |
color lightGray = #C2C3C7; | |
color white = #FFF1E8; | |
color red = #FF004D; | |
color orange = #FFA300; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Try on | |
// http://meshplayground.space/ | |
var palette = randomPalette(); | |
setBackgroundColor(palette[0]) | |
scale(15) | |
for(var x = 0; x<10; x++) { | |
for(var y= 0; y<10; y++) { | |
push(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using System; | |
public class ExemplePromise : MonoBehaviour { | |
public int Pokemon1 = 1; | |
public int Pokemon2 = 2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AsyncError { | |
public string Message { get; private set; } | |
public AsyncError(string _message) { | |
Message = _message; | |
} | |
} |
NewerOlder