Skip to content

Instantly share code, notes, and snippets.

View kyechan99's full-sized avatar
☄️

Ye-Chan Kang kyechan99

☄️
View GitHub Profile
@kyechan99
kyechan99 / colorpicker.js
Created January 18, 2022 11:48
AFRAME colorpicker
AFRAME.registerComponent('colorpicker', {
schema: {
colorWheel: { type: 'selector', default: '#colorWheel' },
lightWheel: { type: 'selector', default: '#lightWheel' }
},
init: function() {
this.color = '#FFFFFF';
this.lightness = 1;
@kyechan99
kyechan99 / draw.js
Last active December 1, 2021 09:05
three.js draw line smooth
// 모듈 설치 방식이 아니여도 무관합니다.
import * as THREE from 'three';
import { OrbitControls } from "three/examples/jsm/controls/OrbitControls";
var scene = new THREE.Scene();
var camera = new THREE.PerspectiveCamera(45, window.innerWidth / window.innerHeight, 1, 1000);
camera.position.set(0, 0, 10);
var renderer = new THREE.WebGLRenderer({ antialias:true });
```
.selector {
/* Positioning */
position: absolute;
z-index: 10;
top: 0;
right: 0;
/* Display & Box Model */
display: inline-block;
@kyechan99
kyechan99 / I'm a night 🦉
Last active January 29, 2021 00:14
My Daily
🌞 Morning 38 commits ▉░░░░░░░░░░░░░░░░░░░░ 4.5%
🌆 Daytime 344 commits ████████▌░░░░░░░░░░░░ 40.7%
🌃 Evening 395 commits █████████▊░░░░░░░░░░░ 46.7%
🌙 Night 69 commits █▋░░░░░░░░░░░░░░░░░░░ 8.2%
package com.company.product;
import android.os.Handler;
import android.os.Message;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.Toast;
import com.unity3d.player.UnityPlayer;