EhhLang Help

Text

Creating Text

You can create text in Ehhlang using the text keyword. The text keyword is followed by the text content and the position of the text. For example, to create a text with the content "Hello, World!" at position (100, 100) with the white color, you can use the following code:

ehh { width: 840 height: 480 background: 0, 0, 0 output: "HelloEhh.png" } text { fontScale: 5 thickness: 5 color: 255, 255, 255 position: 100, 100 text: "Hello Ehh!!!" }

Output:

Hello Ehh

In the above example, we have created a text with the content "Hello Ehh!!!" at position (100, 100) with the white color. We have also specified the font scale and thickness.

Properties

The text has the following properties:

  • fontScale: The font scale of the text.

  • thickness: The thickness of the text.

  • color: The color of the text. The color is specified in RGB format R, G, B.

  • position: The position of the text on the canvas in format X, Y.

  • text: The content of the text.

Conclusion

Text is a fundamental part of any programming language. You can create text in Ehhlang using the text keyword and specify the font scale, thickness, color, position, and content of the text. This helps you to create images with different text and styles.

Last modified: 25 February 2024