Giter Club home page Giter Club logo

cccaca's Introduction

CCCaca

ASCII Art for Cocos2D iOS 1.1, 2.0 and 2.1. Supports ARC.

What can I do with CCCaca?

CCCaca was designed as a screen filter to render your Cocos2D applications in ASCII art using different predefined color sets. It uses a dumbed down version of libCaca called hayCaca (i-caca) under the hood.

How fast is CCCaca?

The filter speed depends on device and font size, the smaller the font, the slower the render. On an iPhone 4S I found a font size of 7 to be a good compromise between quality and speed.

Why was CCCaca created?

Mostly, for fun.

How do I use CCCaca?

Add the "src" folder to your project, then:

#import "CCCacaScreenFilter.h"
// ... code code code code ... //
	CCCacaScreenFilter *screenFilter = [[CCCacaScreenFilter alloc] initWithFontSize:fontSize];
	[screenFilter enable];

That's all, enjoy ASCII! Make sure to keep a pointer to your screenFilter variable so you can disable the filter later using:

[screenFilter disable];

Anything else I need to know?

Maybe?

  • Be aware that CCCaca uses two memory buffers equal to the number of pixels on the device's screen in 32bit.
  • The rendering is multithreaded, be carful if you modify it.
  • CCCaca depends on having an untouched CCDirectorIOS drawScene method, it uses method swizzling to plugin itself.
  • Changing the gamma property only affects colors using the kCCCacaRenderLibCacaColor render color mode.
  • CCCacaScreenFilter inherits from CCScene, you can add other nodes to it and they won't be filtered. There are other crazy ways to use this functionality.

Licensing

libCaca and hayCaca are released under the Do What the Fuck You Want to Public License (WTFPL). CCCaca might be released under the compatible MIT license, it doesn't have one yet.

cccaca's People

Watchers

 avatar  avatar

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.