Montana-Media-Arts / 120_CreativeCoding

Main Code Repo for MART 120. This contains lecture code examples, the HW Wiki, and HW Code Examples.
https://montana-media-arts.github.io/creative-coding-1/
MIT License
131 stars 13 forks source link

Text won't show correctly #148

Closed HagenNathaniel closed 5 years ago

HagenNathaniel commented 5 years ago

Hey guys!!

Came up with a new idea, although, with my/our "basic" knowledge of the language, it's archaic as heck, lol.

anyway, my code is mostly finished...

I just need a spot of help with the text at the bottom (see copied code below)..

I cannot for the life of me, get it to display without adversely affecting my other code...

anyone wanna have a crack at it?

Code as follows:

ss1

cassadys commented 5 years ago

I would try using push() and pop() to isolate part of your code and see if it helps.

On Tue, Sep 25, 2018, 18:46 Nathaniel Hagen notifications@github.com wrote:

Hey guys!!

Came up with a new idea, although, with my/our "basic" knowledge of the language, it's archaic as heck, lol.

anyway, my code is mostly finished...

I just need a spot of help with the text at the bottom (see copied code below)..

I cannot for the life of me, get it to display without adversely affecting my other code...

anyone wanna have a crack at it?

Code as follows:

[image: ss1] https://user-images.githubusercontent.com/42828220/46050796-47439f00-c0f3-11e8-99a5-fcea2b5e134d.PNG

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Montana-Media-Arts/120_CreativeCoding/issues/148, or mute the thread https://github.com/notifications/unsubscribe-auth/Ao1K1ZQ8IgL75TtaGxWsHgszOGNkr-k5ks5ues5dgaJpZM4W5th3 .

DVSnell commented 5 years ago

Try changing the quotation marks to apostrophes. Or nesting the quote in apostrophes if you need them.

spkvfx commented 5 years ago

I think your text might be outside of your canvas. Try

text("Time is Money My Friend", 640, 120)

Isn't text is anchored to the lower left?

Also, I think that there should not be a space between the function() and (parameters). This will cause most languages to throw up, and might cause your javascript to not be interpreted properly by some browsers. This could be a source of your problem as well.