Author Topic: What's your digital signature look like?  (Read 1739 times)

0 Members and 1 Guest are viewing this topic.

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
What's your digital signature look like?
« on: November 30, 2021, 06:27:35 pm »
Just something I was playing around with, which I thought about adding to my little X-Mas program for folks who like to save their colored pictures and stuff -- a digital style "signature" which I'd post down in the corner of the page as a sort of little watermark for them. 

Code: QB64: [Select]
  1. Screen _NewImage(640, 480, 256)
  2.  
  3.     Cls
  4.     Input "Input your own name to make a signature!"; user$
  5.     If user$ = "" Then System
  6.     Signature user$, 320, 240
  7.     Do: _Limit 10: Loop Until _KeyDown(32)
  8.  
  9.  
  10. Sub Signature (user$, x, y)
  11.     PSet (x, y), Asc(user$, 1)
  12.     For i = 1 To Len(user$)
  13.         angle = _D2R((Asc(user$, i) - 65) * 360 / 57)
  14.         x1 = 25 * Sin(angle)
  15.         angle = _D2R((Asc(user$, i) - 65) * 360 / 57)
  16.         y1 = 25 * Cos(angle)
  17.         Line -Step(x1, y1), Asc(user$, i) ', BF
  18.     Next

  [ You are not allowed to view this attachment ]  

A pretty little scribble unique for each user!  ;)
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline johnno56

  • Forum Resident
  • Posts: 1270
  • Live long and prosper.
    • View Profile
Re: What's your digital signature look like?
« Reply #1 on: December 01, 2021, 02:24:24 am »
I used 3.141592654 as a 'name' and it produced a small 2D landscape... Cool...
Logic is the beginning of wisdom.

Offline Aurel

  • Forum Regular
  • Posts: 167
    • View Profile
Re: What's your digital signature look like?
« Reply #2 on: December 01, 2021, 09:06:38 am »
Hmmm
I tried to compile this code with V1.5 on win7_32 bit and i get compiler error
why?...do i need to use latest 2.0 for such a simple program ?
//////////////////////////////////////////////////////////////////
https://aurelsoft.ucoz.com
https://www.facebook.com/groups/470369984111370
//////////////////////////////////////////////////////////////////

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: What's your digital signature look like?
« Reply #3 on: December 01, 2021, 09:50:43 am »
Hmmm
I tried to compile this code with V1.5 on win7_32 bit and i get compiler error
why?...do i need to use latest 2.0 for such a simple program ?

What's the compiler error?  I don't see anything in it that requires 2.0.


Edit: Just tried it and it compiled under 1.5 just fine for me.  You'll have to share the error log so we have an idea of what went wrong on your system.
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline Aurel

  • Forum Regular
  • Posts: 167
    • View Profile
Re: What's your digital signature look like?
« Reply #4 on: December 01, 2021, 11:00:13 am »
here is:

Quote
D:/ARCHIVE/qb64_1_5_win_x86/qb64/internal/c/c_compiler/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/bin/ld.exe: reopening ..\..\Dsignature.exe: Permission denied
//////////////////////////////////////////////////////////////////
https://aurelsoft.ucoz.com
https://www.facebook.com/groups/470369984111370
//////////////////////////////////////////////////////////////////

Offline Aurel

  • Forum Regular
  • Posts: 167
    • View Profile
Re: What's your digital signature look like?
« Reply #5 on: December 01, 2021, 11:03:14 am »
what a heck...
i tried again and now compile fine
hmm...that was strange....sorry if I bothering you.
//////////////////////////////////////////////////////////////////
https://aurelsoft.ucoz.com
https://www.facebook.com/groups/470369984111370
//////////////////////////////////////////////////////////////////

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: What's your digital signature look like?
« Reply #6 on: December 01, 2021, 11:09:21 am »
 ..\..\Dsignature.exe: Permission denied

Sounds like an user's permission issue.  Might want to check your file/folder properties and make certain you have permission to use your own computer...  Windows is goofy and sometimes it just loves for you to have to give yourself permission to do what you're wanting to do.
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline Richard Frost

  • Seasoned Forum Regular
  • Posts: 316
  • Needle nardle noo. - Peter Sellers
    • View Profile
Re: What's your digital signature look like?
« Reply #7 on: December 01, 2021, 02:54:17 pm »
What a unique idea! 

I want tuna, I want liver, I want chicken, please deliver.
It works better if you plug it in.