Output is a shape that encloses 1009 pixels.
- The shape must take the form of a single, closed, non-intersecting loop.
Input is a positive non-zero integer.
- Each input must yield output that is unique — that is, each output must be unique from those generated using a lower input.
Victory is decided by the largest input limit:
- Your submission's input limit is regarded as 1 less than the lowest input that gives non-unique or otherwise invalid output.
- For instance, if valid and unique output is produced for an input of 1, 2 or 3 but not 4, your input limit is 3.
There is a 1009 byte limit on source code. If there is a draw the entry with the fewest bytes wins.
Restrictions and clarifications:
- A shape's maximum size is 109 by 109 pixels. Size includes the line used to draw the shape.
- A line is constant width.
- The enclosed space must be entirely enclosed by the line - you can't use the boundary of the image file.
- The enclosed 1009 pixels refers only to enclosed space. It does not include the line.
- Output is an image.
- There are no further graphical restrictions - e.g. on colour, line thickness etc.
- An output's uniqueness refers only to the enclosed space. Changes to the line or other graphical changes are irrelevant if the enclosed space is not unique.
- A translation of shape isn't unique. Rotations, reflections and any other transformations count as unique.
- Output must be reproducible — the same input will always give the same output
- There needn't be a relation between outputs, consecutive or otherwise.
- Outside of a submission's 'input limit' there is no defined output.
- No other input or fetching of external data is permitted.
- A line must be continuous — i.e. pixels must touch (touching a corner counts).
- A pixel is the smallest unit of 'drawing' used by your method of drawing, and won't necessarily correspond to a screen pixel.
Here is an example of a valid shape:
The following shapes are invalid:
EDIT: Line touching:
Enclosed space must be continuous which is defined as pixels touching. Touching corners counts.
A line cannot enclose any space on its outer side. This image posted by @Sparr illustrates this point - only the first shape on each row are valid:
The outer sides of a line may touch, but not in a way that encloses space.
Touching lines may not overlap - e.g. two touching 1 pixel thick lines would have a combined thickness of 2px, never 1px.