---
title: "glColor4ub(_:_:_:_:)"
framework: OpenGL ES
role: symbol
role_heading: Function
platforms: [iOS 2.0+, iPadOS 2.0+, Mac Catalyst 2.0+, tvOS 9.0+]
path: "opengles/glcolor4ub(_:_:_:_:)"
---

# glColor4ub(_:_:_:_:)

## Declaration

```swift
func glColor4ub(_ red: GLubyte, _ green: GLubyte, _ blue: GLubyte, _ alpha: GLubyte)
```
