My new toy Project :)

My new toy Project :)

https://github.com/tothpaul/Delphi/tree/master/AsciiShape
https://github.com/tothpaul/Delphi/tree/master/AsciiShape

Comments

  1. Remember doing the other implementation back then(the one you linked ;) ). Fun little thing.

    ReplyDelete
  2. Berline. I love that name and the carriage type.

    ReplyDelete
  3. Is there a site that has a list of ASCII Shapes definitions someone has generated ?

    ReplyDelete
  4. Paul TOTH Maybe i am a bit nitpicking here, but my repo is not another but THE (reference) implementation for Delphi ;)

    ReplyDelete
  5. Alexander Benikowski :D well I think that my Parser is better...it merge the ellipsis points at parse time cause only 2 points are required ;) and you didn't implement antialiasing...but mine is VCL only and is not a TGraphic component, so both are welcome I think ;)

    The main reason I've made my own version is to remove the OnDraw event and define colors inside the text. the syntax is simple, and explained in the code
    https://github.com/tothpaul/Delphi/blob/master/AsciiShape/Main.pas#L103

    ReplyDelete
  6. Paul TOTH i did implement antialiasing, and its VCL+FMX ;)
    memnarch.bplaced.net - AsciiImage for Delphi: GDI-Downsampling, FireMonkey and more! | Sparetime-Development

    The Problem with the in syntax definition(while handy) is, that we never endet up with a final solution. So this is left out in mine.

    ReplyDelete
  7. Alexander Benikowski ok, didn't see the update :)

    ReplyDelete
  8. Paul TOTH while it helps to have multiple implementations, could you document your changes (like inline definition) which diverge from the original by CParnot? As you can see here: http://asciimage.org/
    The implementation is already available for a lot of other languages. Just in case someone is confused why it works in yours but(if using the inline style) not for others. For compatibility reasons ;)

    ReplyDelete
  9. Alexander Benikowski yep, on the JS implementation there's a Lower/Upper case distinction...it's not standard I think, but nice also :)
    xqt2.com - Ascii to Icon Based on a post "Replacing Photoshop With NSString ...

    ReplyDelete
  10. The lower/upper case distinction is part of it, that's why the lowercase letters are listed after the Uppercase ones to denote a lower priority

    ReplyDelete
  11. Alexander Benikowski yes but the JS implementation do not fill the polygons in lowercase.

    ReplyDelete
  12. That's just for the WebEditor to give the user predefined styles to tinker with.

    EDIT: Ok haver to correct myself. His implementation seems to enforce it. But on the other side it is just for sake of presentation  there and he documented his changes. And his changes do not conflict with the standard itself. He just doesn't allow to alter settings per shape, which might be for simplicity reasons for a Webform.

    ReplyDelete

Post a Comment