Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

protocol/defines of pieces #1

Open
i-makinori opened this issue Aug 10, 2017 · 9 comments
Open

protocol/defines of pieces #1

i-makinori opened this issue Aug 10, 2017 · 9 comments

Comments

@i-makinori
Copy link

define of pieces/synth is not confirmed yet.
we should to decide define of it using JSON.

@i-makinori
Copy link
Author

current define/example of synth/piece in JSON is

var synth_sample = {
  "sy" : {
    "sy_id" : 3,
    "points" : [{"x":10, "y":20},
                {"x":10, "y":30},
                {"x":30, "y":30}],
    "f" : {"gen" : {"sy_id" : 2,
                    "num" : 5,
                    "dir" : "+"},
           "to"  : {"sy_id" : 1,
                    "num" : 0,
                    "dir" : "-"}}
  }
}

.eg

meaning of 'synth_sapmle' are shown in images.

define of coordinate-way of piece
dsc_0024

visualized
dsc_0026

functional define
image uploaded from ios

@shirry0129
Copy link
Contributor

Is it OK for "sy_id" 0 origin?

@i-makinori
Copy link
Author

some of words to indicate "synth" of piece such as "f" "gen" "to" are difficult to understand directly.
we should to make it clear each word of meaning of them

@shirry0129
Copy link
Contributor

Then,"f"→"synthesis","gen"→"source","to"→"target"?

@i-makinori
Copy link
Author

I made wiki page of Synth/Piece and JSON
I want someone add contents of this page.

@shirry0129
Copy link
Contributor

Define: When read QR, synthesis, source and target are "null".

@shirry0129
Copy link
Contributor

Define: "枠" brings it last.

@shirry0129
Copy link
Contributor

Suggestion: Define total piece count (not synthesized) on top of JSON.

@i-makinori
Copy link
Author

i-makinori commented Sep 23, 2017

[update] Json data of Synth of sample in wiki.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants