Skip to content

An arbitrary solution for setting the background color of libGDX Tables.

Notifications You must be signed in to change notification settings

ezBeanie/libGDX-Table-Background-Color

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

libGDX-Table-Background-Color

An arbitrary solution for setting the background color of libGDX Tables.

Example Usage

BackgroundColor backgroundColor = new BackgroundColor("white_color_texture.png");
backgroundColor.setColor(2, 179, 228, 255); // r, g, b, a
table.setBackground(backgroundColor);

Where table is an instance of a libGDX Table, com.badlogic.gdx.scenes.scene2d.ui.Table, and "white_color_texture.png" is an arbitrary name of a PNG file located in the project's root resource directory, which is /android/assets/ by default.

Purpose of this Repository

This repo is used for the following solution:

https://stackoverflow.com/questions/39081993/libgdx-scene2d-set-background-color-of-table/46084724#46084724

-and is a back-up to:

http://www.snip2code.com/Snippet/2615417

Contribution

Feel free to make pull requests. The purpose of this repository is to help others. There are no emotions attached here.

About

An arbitrary solution for setting the background color of libGDX Tables.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%