Questions tagged [c4]

The C4 Framework for iOS is a creative-coding framework to create "works of art."

The C4 Framework (a.k.a Cocoa For Artists), promotes software literacy in design, research and the arts. It is an attempt to make iOS programming, the Cocoa API, and the programming language Objective-C more accessible. It's focus is on the artistic side of application development and the production of new kinds of computer-aided art practice.

For more information see the C4 Project About Page.

98 questions
5
votes
1 answer

Setting/starting/adjusting looping segments of C4Sample

I'd like to be able to loop certain sections of a sample using c4. I'd also like to skip between loops without waiting for the current loop to end. So for example if I have the last bar looping and I'm halfway through and I want to skip to the…
Greg Debicki
  • 235
  • 2
  • 6
4
votes
1 answer

Documenting the aggregates & relations between microservices

In my organization we're trying to design our microservices based on the Bounded Context (BC) pattern (part of Domain-driven design). While we're doing this we also try to use another DDD pattern called the Context Mapping, to better identify the…
4
votes
2 answers

Y coordinate not updating properly

I am trying to create a side scroller and I am having trouble setting the Y coordinates of my objects to random values. I call my objects platforms. I want each of the platform to appear at different Y coordinates, and believe that my approach was…
tailedmouse
  • 365
  • 3
  • 16
4
votes
1 answer

PAN gesture ending not triggering 'touches ended' with a C4View Subclass? (C4)

So I'm using the C4 coding framework for IOS and I've encountered something I can't quite figure out. I'm using two examples for the C4 github account together - the testScrollView and WalkCycle examples. I have a C4View subclass called Walker which…
4
votes
1 answer

Animated Masks in C4

I know that it is possible to create layer masks in C4 like this: object.layer.mask = anotherObject.layer; Is there a known way to use an animated mask?
4
votes
1 answer

How are gestures handled in C4Shape objects?

I'm trying to extend C4 a bit, and am trying to figure out how gestures and animations work on C4Shape objects. I've looked through the source, and it looks like they are all based on CAShapeLayers, to which gesture recognizers cannot be directly…
jimt
  • 1,980
  • 2
  • 21
  • 28
4
votes
1 answer

AVPlayerStatusFailed and error code "Cannot Decode"

I am working with the C4 Alpha and I came across two errors that i cant seem to figure out how to solve. My code setup is the following: -(void)setup { [self setupFrames]; m1 = [[MyMovie alloc] initWithMovieName:@"d3.mov"…
M.Ermecheo
  • 87
  • 1
  • 8
4
votes
1 answer

How do I apply a UILongPressGestureRecognizer to a shape in C4?

I am working in C4 and want to be able to press down on a shape and drag it at a slow speed upward. I have been working with the "Getting the UITouch objects for a UIGestureRecognizer" tutorial and other TouchesMoved and TouchesBegan Objective-C…
4
votes
1 answer

I'm trying to get the pixel colour for a C4 image, how do I access the image colour matrix? c4framework

In the discussion of the colour colorMatrix:bias it reads : This filter performs a matrix multiplication, as follows, to transform the color vector: s.r = dot(s, redVector) s.g = dot(s, greenVector) s.b = dot(s, blueVector) s.a = dot(s,…
mwylegly
  • 75
  • 5
4
votes
2 answers

Adding gestures to a shape - c4framework

I'm just learning how to use the C4 framework and trying to add gestures to a shape, but I can't seem to figure out how to get them to do anything. The following method creates an error, when I try to change the position of a button after it is…
jamesco
  • 83
  • 9
3
votes
1 answer

C4: Add panning to an object other than "self"

I watched the C4 tutorial on adding a pan gesture to an object and animating it to return to its original position when the panning is finished. I'm trying to add this to three individual objects. I have it working with one object so far to move it…
Saelyria
  • 142
  • 7
3
votes
1 answer

touchesEnded with addGesture

I am trying to get touchesEnded to fire after a gesture. I've included a code snippet where both touchesBegan and touchesEnded are enabled to fire. I get two odd behaviours with the code below. When I pan it prints begin and swiped ended. When I…
Adam Tindale
  • 1,239
  • 10
  • 26
3
votes
1 answer

Animating multiple colors in C4

I would like to animate the color of a shape object to turn from one color to another color and then back again. I tried to set the color of my object with one method and then set it back to the original color with another method, but this seems…
Jman078
  • 63
  • 3
3
votes
1 answer

How do I generate a random number in C4? [C4Framework]

How do I generate a random number using the C4 Alpha Api?
Greg Debicki
  • 235
  • 2
  • 6
3
votes
1 answer

Artifacts when animating shapes in C4 - c4framework

When animating a shape in C4 the undefined preset characteristics of the shape, such as line width and fillcolour, also animate. Is there a work around or solution to this problem?
mwylegly
  • 75
  • 5
1
2 3 4 5 6 7