Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 4bbef2ab0a
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (17 sloc) 0.455 kb
// Copyright 2010 The Walk Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package walk
type Color uint32
func RGB(r, g, b byte) Color {
return Color(uint32(r) | uint32(g)<<8 | uint32(b)<<16)
func (c Color) R() byte {
return byte(c & 0xff)
func (c Color) G() byte {
return byte((c >> 8) & 0xff)
func (c Color) B() byte {
return byte((c >> 16) & 0xff)
Jump to Line
Something went wrong with that request. Please try again.