Giter Club home page Giter Club logo

Comments (6)

ojack avatar ojack commented on August 9, 2024

yeaa this could be fun! i think the easiest would be to implement it as a canvas source. this would be interesting to apply to images, videos, etc as well but I think requires a different kind of function/source than is currently implemented

from hydra.

redraw avatar redraw commented on August 9, 2024

right :) I was about to close this issue because maybe that's possible using p5 i.e

p = new P5()
...
s1.init({src: p.canvas})

however it would be handy to have some function to add a simple video/image/text

from hydra.

truejoolean avatar truejoolean commented on August 9, 2024

I'm quite new to this whole topic, but I would like to use some text. Can you maybe give further details on how exactly it would work with p5?

from hydra.

esnho avatar esnho commented on August 9, 2024

Can this technique be a valid path to follow for text rendering?

Intro
https://webglfundamentals.org/webgl/lessons/webgl-text-canvas2d.html

Serious stuff
https://webglfundamentals.org/webgl/lessons/webgl-text-texture.html

from hydra.

ojack avatar ojack commented on August 9, 2024

I am going to close this because it is outside the scope of hydra. For documentation of p5 in hydra, see: https://github.com/ojack/hydra-examples/blob/master/6-p5.js

And see the p5 documentation for how to use text.

from hydra.

Sohalt avatar Sohalt commented on August 9, 2024

Hi! Thanks so much for hydra!
Would you be willing to reconsider adding this, @ojack? The p5js workaround is ok, but I still feel there's extra value in a super simple text source.

from hydra.

Related Issues (20)

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.