{"id":19129811,"url":"https://github.com/syohex/p5-text-aalib","last_synced_at":"2025-08-01T15:34:09.107Z","repository":{"id":1842181,"uuid":"2766710","full_name":"syohex/p5-Text-AAlib","owner":"syohex","description":"Perl binding of AAlib","archived":false,"fork":false,"pushed_at":"2020-12-14T12:25:38.000Z","size":76,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-03T10:46:53.051Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"openstack/requirements","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/syohex.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-11-13T14:42:51.000Z","updated_at":"2020-12-14T12:25:35.000Z","dependencies_parsed_at":"2022-08-20T03:51:01.422Z","dependency_job_id":null,"html_url":"https://github.com/syohex/p5-Text-AAlib","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syohex%2Fp5-Text-AAlib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syohex%2Fp5-Text-AAlib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syohex%2Fp5-Text-AAlib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syohex%2Fp5-Text-AAlib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/syohex","download_url":"https://codeload.github.com/syohex/p5-Text-AAlib/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240206968,"owners_count":19765036,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T06:08:36.284Z","updated_at":"2025-02-22T16:56:06.759Z","avatar_url":"https://github.com/syohex.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Actions Status](https://github.com/syohex/p5-Text-AAlib/workflows/CI/badge.svg)](https://github.com/syohex/p5-Text-AAlib/actions)\n# NAME\n\nText::AAlib - Perl Binding for AAlib\n\n# SYNOPSIS\n\n    use Text::AAlib;\n    use Imager;\n\n    my $img = Imager-\u003enew( file =\u003e 'sample.jpg' );\n    my ($width, $height) = ($img-\u003egetwidth, $img-\u003egetheight);\n\n    my $aa = Text::AAlib-\u003enew(\n        width  =\u003e $width,\n        height =\u003e $height,\n        mask   =\u003e AA_REVERSE_MASK,\n    );\n\n    $aa-\u003eput_image(image =\u003e $img);\n    print $aa-\u003erender();\n\n# DESCRIPTION\n\nText::AAlib is perl binding for AAlib. AAlib is a library for creating\nascii art(AA).\n\n# INTERFACE\n\n## Class Methods\n\n### `Text::AAlib-\u003enew(%args)`\n\nCreates and returns a new Text::AAlib instance.\n\n`%args` is:\n\n- width :Int\n\n    Width of output file.\n\n- height :Int\n\n    Height of output file.\n\n- mask :Int\n\n    Masks for attribute. Supported masks are `AA_NORMAL_MASK`, `AA_DIM_MASK`,\n    `AA_BOLD_MASK`, `AA_BOLDFONT_MASK`, `AA_REVERSE_MASK`.\n\n## Instance Methods\n\n### `$aalib-\u003eputpixel(%args)`\n\n- x :Int\n\n    x-coordinate of pixel. `x` parameter should be 0 \u003c= `x` \u003c= `width`.\n    `width` is parameter of constructor.\n\n- y :Int\n\n    y-coordinate of pixel. `y` parameter should be 0 \u003c= `y` \u003c= `height`.\n    `height` is parameter of constructor.\n\n- color :Int\n\n    Brightness of pixel. `color` parameter should be 0 \u003c= `color` \u003c= 255.\n\n### `$aalib-\u003eputs(%args)`\n\n- x :Int\n\n    x-coordinate.\n\n- y :Int\n\n    y-coordinate\n\n- string :Str\n\n    String set\n\n- attribute :Enum(enum aa\\_attribute)\n\n    Buffer attribute. This parameter should be AA\\_NORMAL, AA\\_BOLD, AA\\_DIM,\n    AA\\_BOLDFONT, AA\\_REVERSE.\n\n### `$aalib-\u003eput_image(%args)`\n\n- x :Int = 0\n\n    x-coordinate.\n\n- y :Int = 0\n\n    y-coordinate\n\n- image :Imager\n\n    Image as Imager object\n\n### `$aalib-\u003erender(%args) :Str`\n\nRender buffer and return it as plain text.\nYou can specify render parameter following\n\n- bright :Int\n- contrast :Int\n- gamma :Float\n- dither :Enum\n- inversion :Int\n\n### `$aalib-\u003eas_string($with_attr) :Str`\n\nReturn AA as string.\nIf `$with_attr` is true, text attribute(BOLD, DIM, REVERSE) is enable.\n\n### `$aalib-\u003eresize()`\n\nResize buffers at runtime.\n\n### `$aalib-\u003eflush()`\n\nFlush buffers.\n\n### `$aalib-\u003eclose()`\n\nClose AAlib context.\n\n# AUTHOR\n\nSyohei YOSHIDA \u003csyohex@gmail.com\u003e\n\n# COPYRIGHT\n\nCopyright 2011- Syohei YOSHIDA\n\n# LICENSE\n\nThis library is free software; you can redistribute it and/or modify\nit under the same terms as Perl itself.\n\n# SEE ALSO\n\nSome idea are taken from python-aalib. [http://aa-project.sourceforge.net/aalib/](http://aa-project.sourceforge.net/aalib/)\n\n[http://jwilk.net/software/python-aalib](http://jwilk.net/software/python-aalib)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyohex%2Fp5-text-aalib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyohex%2Fp5-text-aalib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyohex%2Fp5-text-aalib/lists"}