TokOut's collection

hello, it’s me, I had the idea for this code to share funny codes. So here is my one:

I call it the Smaragd Generator
Description: It will rotate a Smaragd in different rotations by creating a speed rotate and looks nice.

function setup()"x")"d")

function draw()
    if x==nil then x=10 d=true end
    if d==true then x=x+10 else x=x-10 end
    if x>=300 then d=false end
    if x<=0 then d=true end
    background(30, 255, 50, 255)
    rotate(ElapsedTime * x, 50, 100, 500)
    fill(255, 255, 0, 255)
    rect(-100, -100, 200, 200)

This isn’t any competition. Just share funny codes with nice animation. Not, really, don’t you like the idea, instead of creating topics for one class, sharing them here.

After removing the background,…

I agree with @Jmv38 . The reason we keep closing your threads is the you make multiple threads on the same topic, about the same code repository. Codea Talk is not meant to be “The TokOut Show”.

On the right-hand side of the screen, there is a “My Discussions” button. Please use this to find your previous threads. If you want to announce a change or discuss an issue with something you’re working on, do that with a post in the original thread you started. Do not make a new thread. It is much easier for people to follow the conversation and understand what the issue is if the discussion happens in one place. If you start several threads a day, people will think you’re a spammer and ignore you.

@TokOut hello! Why dont you put everything you are doing in this post, including your remarks, comments, error messages, moods? This way it will be easier to follow all your creations. You are kind of spamming the forum now, i would love to have all your comments in one single place so i can more easily follow your creativity.

@yojimbo2000, @Jmv38, I want to suggest the category’s:
Off-Topic → Won’t be seen in General Screen,
Codea-Category → it’s the Codea category

• For: Code Sharing
Simple Codes, Windows, Math, Fun
• For: Bugs
Crashes Codea, Tags Bug Eg.: The bug which was fixed about matrix * vec3, forum
• For: Suggestions
Tags, Graphics, Forum
• For: Questions
Developer Questions, Other

@yojimbo2000, question: Any server game instead of an server Bluetooth. Is it possible?

@yojimbo2000, @Jmv38, you want to know my things: The code is here, the video I will give later (5 minutes)

nice! Keep putting your stuff in this thread.

Thx <3

And @jmv38, can you say to yojimbo2000 that if this thread will be old not to close this, ok?

In this code I found out how to work with strings and the diagonal script line \\\
\\f, \ , \\r for a new line
\\t for a long space (x\\tyx y)
\\v for a short space (x\\tyx y)

function draw()
        case '"': printf("\\\\\""); break;
        case '\\\\': printf("\\\\\\\"); break;
        case '\\a': printf("\\\\a"); break;
        case '\\b': printf("\\\\b"); break;
        case '\\f': printf("\\\\f"); break;
        case '\
': printf("\\\
"); break;
        case '\\r': printf("\\\\r"); break;
        case '\\t': printf("\\\\t"); break;
        case '\\v': printf("\\\\v"); break;
    background(0, 0, 0, 255)
moretext\\rmoretext\\tmoretext\\vmoregext", WIDTH/2, HEIGHT/2)
    -- \\f \
 \\r - new line
    -- \\t - longer space
    -- \\v - smaller space

My first table code @yojimbo2000, like you wanted

function setup()
    tbl = {}

function draw()
    background(0, 0, 0, 255)
    fill(127, 127, 127, 255)
    stroke(255, 255, 255, 255)
    for x = 1, 25 do
        tbl[x] = {}
        for y = 1, 25 do
            tbl[x][y] = false
            rect(x * 20, y * 20, 25, 25)

@Ignatz, @yojimbo2000, @dave1707, @jmv38, you wanted that I will keep my codes here, this is my next table lesson: Iron background:

function setup()
    s = 50
    bg = {}

function draw()
    -- You can set the background to any value, for not repeating bodys
    background(0, 0, 0, 255)
    fill(127, 127, 127, 255)
    stroke(255, 255, 255, 255)
    for x = 1, 25 do bg[x] = {} for y = 1, 25 do bg[x][y] = false
        rect(x * s - 105, y * s - 105, s, s)
    end end
    -- Do your drawing here

This code is bugging: Can someone help plz?

function setup()
    bg = {}

function draw()
    background(0, 0, 0, 255)
    for x = 1, 100 do
        bg[x] = {}
        for y = 1, 75 do
            bg[x][y] = false
            fill(math.random(255), math.random(255), math.random(255), 255)
            ellipse(WIDTH/2, HEIGHT/2, x * 5, y * 5)

@TokOut what is the problem with the code? It does exactly what you’ve told it to do, which is draw 7500 overlapping ellipses in the centre of the screen every frame.

He isn’t drawing ellipses in random position.

You haven’t told it to draw ellipses in random positions, you’ve told it to draw them all at width/2, height/2. They all overlap, so you only really see one ellipse. You’ve set the color to be random. Code will only do exactly what you tell it to do, not what you think you might want it to do.

Oh, overseen

@yojimbo2000, how to make a code, that if you will do something, an e-mail will be sent, for example if CODE-IS-WORKING elseif CODE-IS-WORKING else REQUEST-TO-OWNER as Request To Owner is the moment where we sent the e-mail

How to make that touch state hold? I am working on a project like Minecraft 2d and want instead moving in the buttons to make them only hold to move, then I’d also like knowing how to make that he can only move on the world option. The graphics are in the video bad. This is a small 25x25 big world and there is a body moving