package libgodelbrot


type RedscalePalette CachePalette

func NewRedscalePalette(iterateLimit uint8) RedscalePalette {
    return NewCachePalette(iterateLimit, &redscaleCacher)
}

// Cache redscale colour values
func redscaleCacher(limit uint8, index uint8) color.NRGBA {
    return  color.NRGBA{
        R: limit - index,
        G: 0,
        B: 0,
        A: 255,
    }
}
package libgodelbrot


type RedscalePalette CachePalette

func NewRedscalePalette(iterateLimit uint8) RedscalePalette {
    return NewCachePalette(iterateLimit, &redscaleCacher)
}

// Cache redscale colour values
func redscaleCacher(limit uint8, index uint8) color.NRGBA {
    return  color.NRGBA{
        R: index * (255 / limit),
        G: 0,
        B: 0,
        A: 255,
    }
}
Move up scale increments of intensity max / limit
Move up scale increments of intensity max / limit
