public static Texture2D Noise(int wh, string hexcolor, NoisePattern pattern) { var color = hexcolor.ToColor(); var texture = new Texture2D(Global.Device, wh, wh); var pixels = NoiseGen.Patterns[pattern].Invoke(wh, wh, color); texture.SetData(pixels); return(texture); }
public void Init(Track owner, Note note, ADSR env, NoisePattern pattern) { Init(owner, note, env); _pat = pattern == NoisePattern.Fine ? Utils.NoiseFine : Utils.NoiseRough; }
public void Init(byte ownerIdx, Note note, ADSR env, NoisePattern pattern) { Init(ownerIdx, note, env); pat = (pattern == NoisePattern.Fine ? GBSamples.NoiseFine : GBSamples.NoiseRough); }
internal void Init(byte ownerIdx, Note note, ADSR env, NoisePattern pattern) { Init(ownerIdx, note, env); pat = (pattern == NoisePattern.Fine ? fine : rough); }