https://linen.dev logo
Join Discord
Powered by
# lime
  • b

    broad-gpu-14081

    05/06/2023, 3:21 AM
    Is it possible to use a local dir as a library for
    <haxelib />
    tag?
  • b

    broad-gpu-14081

    05/06/2023, 3:49 AM
    <haxelib path="...">
    and it is documented only in changelog
  • c

    curved-lifeguard-6743

    05/06/2023, 4:51 AM
    Android Armv7 no longer works with newer hxcpp?

    https://cdn.discordapp.com/attachments/769686258049351722/1104269296957407272/rn_image_picker_lib_temp_89c73c63-6e21-43ba-a2b8-dfde69896728.jpg▾

  • t

    tall-teacher-57409

    05/06/2023, 9:14 AM
    and also how do I get that time in lime? ((in seconds))
  • h

    hallowed-ocean-84954

    05/06/2023, 1:30 PM
    You can use Sys.time for seconds
  • t

    tall-teacher-57409

    05/06/2023, 1:41 PM
    but Sys doesn't work on the js target iirc?
  • t

    tall-teacher-57409

    05/06/2023, 1:43 PM
    I need the equivalent of
    glfwGetTime
    which returns the elapsed time in seconds ig
  • h

    hallowed-ocean-84954

    05/06/2023, 1:43 PM
    Ah forgot about that... there must be a portable option because you can get it in flixel
  • t

    tall-teacher-57409

    05/06/2023, 1:44 PM
    yeah
  • a

    ambitious-knife-25690

    05/06/2023, 1:45 PM
    ... Date? lol
  • t

    tall-teacher-57409

    05/06/2023, 1:46 PM
    I mean like the time elapsed since the beginning of execution
  • a

    ambitious-knife-25690

    05/06/2023, 1:47 PM
    start = date.now... //... elapsed = date.now... - start
  • h

    hallowed-ocean-84954

    05/06/2023, 1:55 PM
    Date.getTime() - I think
  • h

    hallowed-ocean-84954

    05/06/2023, 1:55 PM
    will get you time in millis
  • h

    hallowed-ocean-84954

    05/06/2023, 1:55 PM
    you can diff it then
  • h

    hallowed-ocean-84954

    05/06/2023, 1:58 PM
    the doc notes that this is seconds only precision on cpp which is odd - for portable higher precision it recommends haxe.Timer.stamp()
  • h

    hallowed-ocean-84954

    05/06/2023, 1:58 PM
    I think I've just use Date's getTime() and been fine but I don't recall
  • t

    tall-teacher-57409

    05/06/2023, 2:01 PM
    oh I see
  • h

    hallowed-ocean-84954

    05/06/2023, 2:01 PM
    I use OpenFL Lib.getTimer() which sits on Lime's System.getTimer() so you might try that also
  • t

    tall-teacher-57409

    05/06/2023, 2:02 PM
    alright I'll try
  • t

    tall-teacher-57409

    05/06/2023, 2:14 PM
    the color changes but its much faster than the gif

    https://cdn.discordapp.com/attachments/769686258049351722/1104410776288104520/tri.gif▾

  • t

    tall-teacher-57409

    05/06/2023, 2:14 PM
    I mean the gif made it slower than what I'm seeing now (which is the effect I want lol)
  • t

    tall-teacher-57409

    05/06/2023, 2:16 PM
    https://gist.github.com/bwkam/68d1bccb3bcae2d3fbac8d8fdd003a3c here's the code so far
  • h

    hallowed-ocean-84954

    05/06/2023, 2:19 PM
    divide the time value before applying sin()
  • t

    tall-teacher-57409

    05/06/2023, 2:50 PM
    wait how?
  • t

    tall-teacher-57409

    05/06/2023, 2:51 PM
    `sin(timeValue / 2.0) + 0.5;`like this?
  • h

    hallowed-ocean-84954

    05/06/2023, 2:51 PM
    Yeah that sort of thing.
  • h

    hallowed-ocean-84954

    05/06/2023, 2:51 PM
    You still need the /2 outside the sin as well though
  • t

    tall-teacher-57409

    05/06/2023, 2:52 PM
    sin(timeValue) / 2.0 + 0.5
  • t

    tall-teacher-57409

    05/06/2023, 2:52 PM
    like that?
1...106107108...138Latest