Skip to content

Instantly share code, notes, and snippets.

@Thundernerd
Thundernerd / Docker.cs
Last active January 24, 2024 09:32
Helper to dock EditorWindows
#if UNITY_EDITOR
using System;
using System.Reflection;
using UnityEditor;
using UnityEngine;
public static class Docker
{
#region Reflection Types
@masaha03
masaha03 / gist:1416419
Created December 1, 2011 12:38
HSY色空間変換
/*
http://sourceforge.jp/projects/hsy-color/wiki/HSY%E8%89%B2%E7%A9%BA%E9%96%93%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6
*/
private int RGBtoHSYtoRGB(int rgb) {
float h;
float y;
float s;
float S;
float MAX;