Graphics::Raylib::Text - Output text to window
version 0.003
use strict; use warnings; use Graphics::Raylib; use Graphics::Raylib::Color; use Graphics::Raylib::Text; my $i = 0; my $text = Graphics::Raylib::Text->new( color => Graphics::Raylib::Color::DARKGRAY, size => 20, ); while (!$g->exiting) { Graphics::Raylib::draw { $g->clear(Graphics::Raylib::Color::BLACK); $text->text = "Generation " . ($i++); $text->draw; }; }
Constructs a new Graphics::Raylib::Text instance. Position defaults to [0,0] and size to 10.
[0,0]
10
An already constructed Graphics::Raylib::Text, that draws FPS to the top left corner.
Graphics::Raylib::Text
http://github.com/athreef/Graphics-Raylib
Graphics::Raylib Graphics::Raylib::Color
Ahmad Fatoum <athreef@cpan.org>, http://a3f.at
<athreef@cpan.org>
Copyright (C) 2017 Ahmad Fatoum
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Graphics::Raylib, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Graphics::Raylib
CPAN shell
perl -MCPAN -e shell install Graphics::Raylib
For more information on module installation, please visit the detailed CPAN module installation guide.