protected override void Setup() { circle = createEllipse(0, 0, 6, 6); circle.enableStyle(); circle.fill(color(0, 64)); circle.blendMode(UMaterials.BlendMode.Transparent); star = createShape(); star.beginShape(UShape.VertexType.TRIANGLE_FAN); star.isClockwise = false; star.vertex(0.0f, 0.0f); star.vertex(0.0f, -0.5f); star.vertex(0.14f, -0.20f); star.vertex(0.47f, -0.15f); star.vertex(0.23f, 0.07f); star.vertex(0.29f, 0.40f); star.vertex(0.0f, 0.25f); star.vertex(-0.29f, 0.4f); star.vertex(-0.23f, 0.07f); star.vertex(-0.47f, -0.15f); star.vertex(-0.14f, -0.2f); star.vertex(0.0f, -0.5f); star.endShape(); rotateDegrees(); }
protected override void Setup() { sphere = createSphere(r, r, r); Hiragana = new string[, ] { { "あ", "0", "0" }, { "い", "0", "1" }, { "う", "0", "2" }, { "え", "0", "3" }, { "お", "0", "4" }, { "か", "1", "0" }, { "き", "1", "1" }, { "く", "1", "2" }, { "け", "1", "3" }, { "こ", "1", "4" }, { "さ", "2", "0" }, { "し", "2", "1" }, { "す", "2", "2" }, { "せ", "2", "3" }, { "そ", "2", "4" }, { "た", "3", "0" }, { "ち", "3", "1" }, { "つ", "3", "2" }, { "て", "3", "3" }, { "と", "3", "4" }, { "な", "4", "0" }, { "に", "4", "1" }, { "ぬ", "4", "2" }, { "ね", "4", "3" }, { "の", "4", "4" }, { "は", "5", "0" }, { "ひ", "5", "1" }, { "ふ", "5", "2" }, { "へ", "5", "3" }, { "ほ", "5", "4" }, { "ま", "6", "0" }, { "み", "6", "1" }, { "む", "6", "2" }, { "め", "6", "3" }, { "も", "6", "4" }, { "や", "7", "0" }, { "ゆ", "7", "2" }, { "よ", "7", "4" }, { "ら", "8", "0" }, { "り", "8", "1" }, { "る", "8", "2" }, { "れ", "8", "3" }, { "ろ", "8", "4" }, { "わ", "9", "0" }, { "を", "9", "2" }, { "ん", "9", "4" } }; VoiceRec(); }
protected override void Setup() { stars = createShape(); stars.beginShape(UShape.VertexType.POINTS); randomSeed(0); for (int i = 0; i < 500; i++) { stroke(random(255), random(255), random(255)); stars.vertex(randomUnitVec3() * random(rangeMin, rangeMax)); } for (int i = 0; i < 2500; i++) { stroke(random(20, 120)); stars.vertex(randomUnitVec3() * random(rangeMin, rangeMax)); } stars.endShape(); }