Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be 📖

Katuiche Colorful Console

An asset by Cassiano Belniak
The page banner background of a mountain and forest
Katuiche Colorful Console thumbnail image
Katuiche Colorful Console thumbnail image
Katuiche Colorful Console thumbnail image
Katuiche Colorful Console hero image

Quick Information

0 ratings
Katuiche Colorful Console icon image
Cassiano Belniak
Katuiche Colorful Console

This plugin add new functions to the engine to print colored text to the console.It also allows cleaning the console text.

Supported Engine Version
3.2
Version String
1.0
License Version
MIT
Support Level
community
Modified Date
1 year ago
Git URL
Issue URL

Katuiche Colorful Console

Add colors to your Godot console!

Hello there! So you ever wanted a better formatation for your massive logging and those white lines on black background don't do justice to your beautiful data? Say no more! With "Katuiche Colorful Console" you can now print text in any color you want!

Choose between 8 pretty colors!

README Very colors!! With this plugin, you can print into the Godot console with colored text.

The syntax is pretty simple:

Print.line(color, thing) # for print(thing)
Print.raw(color, thing) # for printraw(thing)
Print.debug(color, thing) # for print_debug(thing)
Print.s(color, thing) # for prints(thing)
Print.t(color, thing) # for printt(thing)

Where:

  • Color: Is one of the color constants from the Print class
  • Thing: Is any string. array or object

For color, color constants can be combined with background color constants:

Print.line(Print.BLACK + Print.WHITE_BACKGROUND, "Hi, in black text with white background")

The following colors are a available:

BLACK
RED
GREEN
YELLOW
BLUE
PURPLE
CYAN
WHITE

README Avaliable colors

Those colors are also available in four variances:

<COLOR>_BRIGHT
<COLOR>_BOLD
<COLOR>_BOLD_BRIGHT
<COLOR>_UNDERLINED

README Color variances

Background colors are also available in normal and bright variance.

Cleaning the console

There is an extra function to clear the console itself:

Print.clear_console()

And for setting a color manually

There are two functions to set the color of subsequent prints:

Print.set_color(color)
print("this text will be colored")
Print.reset() # resets to white on black color

Installation

This plugin should be availiable on Godot's assetLib but it could be installed from here. Just download this project and paste the katuiche-colorful-console to your project.

However

There is an extra step you need to do if you are running this plugin in Windows: To enable colors in the console, the following register should be edited: HKEY_CURRENT_USER > Console > VirtualTerminalLevel to 0x1 Then, restart Godot. It allows ANSI characters to be interpreted by the Windows console.

Thats all!

If you are felling it, please leave a donation!

README PayPal button

This plugin add new functions to the engine to print colored text to the console.
It also allows cleaning the console text.

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
Katuiche Colorful Console icon image
Cassiano Belniak
Katuiche Colorful Console

This plugin add new functions to the engine to print colored text to the console.It also allows cleaning the console text.

Supported Engine Version
3.2
Version String
1.0
License Version
MIT
Support Level
community
Modified Date
1 year ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers