Git Product home page Git Product logo

chameleon's People

Contributors

webd97 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

akhof

chameleon's Issues

Add support for writing characters and strings onto an image

Summary

It should be possible to write characters/Strings onto an image.

  • A string to be printed MUST be passed.
  • A position MUST be passed to define where the text will begin.
  • A font MUST be passed to this method to define the font to be used. TrueType Fonts MUST be supported.
  • A font size MUST be passed too define the character height.
  • A font color CAN be passed to define the color to be used. Defaults to black.
  • An angle CAN be passed to rotate
  • A direction CAN be passed to define the text orientation (LTR or RTL). Defaults to LTR.

DoD

There is a printString() method that can print Strings of any (>=0 && โˆˆN) length onto any position of the image.

Image Image::printString(string, Vector2, Font, int, IColor = RGBColor::white(), float = 0, TextDirection = TextDirection::LTR());

There is a test method that covers the mentioned method and does not fail when executed.

Add support for gamma correction

Summary

Images should be able to be gamma-corrected.

DoD

There is a gammaCorrect() method in the Image class with the following signature:

Image Image::gammaCorrect(float, float);

There is a test method in test/Image.php, that covers the method(s) above and does not fail when executed.

void ImageTest::testCorrectGamma();

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.