Questions tagged [quickdraw]

QuickDraw is the 2D graphics library and associated Application Programming Interface (API) which is a core part of the classic Apple Macintosh operating system.

QuickDraw is the 2D graphics library and associated Application Programming Interface (API) which is a core part of the classic Apple Macintosh operating system.

It was initially written by Bill Atkinson and Andy Hertzfeld. QuickDraw still exists as part of the libraries of Mac OS X, but has been largely superseded by the more modern Quartz graphics system. In Mac OS X v10.4, QuickDraw has been officially deprecated. In Mac OS X v10.5 applications using QuickDraw cannot make use of the added 64-bit support.

27 questions
0
votes
1 answer

Loading nested array into bigquery from public google cloud dataset

I'm trying to load a public dataset from Google Cloud into BigQuery (quickdraw_dataset). The data is in JSON format as below: { "key_id":"5891796615823360", "word":"nose", "countrycode":"AE", "timestamp":"2017-03-01 20:41:36.70725…
0
votes
1 answer

Trying to get the key id of each drawing within drawing group of quickdraw

I have a separate list of key_ids for multiple drawings within the bread drawing group. I would like to see whether the key_ids I have match the key_ids that are associated with each bread drawing within the bread category, and then extract the info…
Angie
  • 183
  • 3
  • 13
0
votes
2 answers

How to plot the Google QuickDraw Dataset in Python?

I have extracted the strokes data from the QuickDraw Dataset (JSON format), but I have no idea on how to plot it in Python. I tried several times, but doesn't work at all. I need help on plotting the strokes in Python. The following is my code for…
0
votes
1 answer

How google facets visualization tool can be embed into web page

I'm referring to the source project from facets I'm using Ubuntu 17.10 As per the instructions, I've installed bazel build and run the facets in my local by referring quick demo for facets demo using jupyter notebook. Visualizations are shown here I…
dwayneJohn
  • 919
  • 1
  • 12
  • 30
0
votes
1 answer

How do I parse this ndjson file in python?

I got this ndjson file from Google Quick draw dataset which is recently open sourced. I'm trying to make png image out of this co-ordinates. I need to parse this ndjson file in python [{'key_id': 5344373355053056, 'image': [((2, 38, 71, 108, 128,…
Neel Kadia
  • 11
  • 2
0
votes
1 answer

How to draw Truncated text with ATSUI

How do i draw truncated text with ATSUI?? I have a legacy app which uses QuickDraw API. it uses StringWidth , TruncString and DrawString functions. I could replace the StringWidth and DrawString with ATSUI's ATSUMeasureTextImage and ATSUDrawText.…
0
votes
1 answer

PicHandle to CGImageRef

This project is a generic C++ plugin with core-graphics support. I am unable to convert a PicHandle to CGImageRef successfully. Saving off image from CFDataRef results in a bad image. if(pic) { Handle thePictureFileHandle; …
cloudnine
  • 3
  • 2
0
votes
2 answers

Mac Plugins no longer support GetWindowFromPort?

I'm mantaining an ancient Firefox plugin. It uses GetWindowFromPort to get a WindowPtr object out of the NP_Port object which is the platform specific window data in the WidowPtr object. Now it always returns NULL. NP_Port object is non-null as is…
Brian Postow
  • 11,709
  • 17
  • 81
  • 125
0
votes
2 answers

Importing a text file to create a list in Python 3.x?

I can't seem to figure out how to use values given in a text file and import them into python to create a list. What I'm trying to accomplish here is to create a gameboard and then put numbers on it as a sample set. I have to use Quickdraw to…
user1840501
  • 5
  • 2
  • 3
0
votes
2 answers

Convert text into a dictionary with certain keys and values

Possible Duplicate: how to extract a text file into a dictionary I have a text file where I would like to change it into a dictionary in python. The text file is as follows. Where I would like to have the keys as "sun" and "earth" and "moon" and…
tom smith
  • 71
  • 3
  • 11
0
votes
1 answer

input data to create histogram in Quickdraw

I am stuck on a question. If i have a set of data in a list (say number of students and their corresponding grade) How would I code that to create a histogram in quickdraw?
Romulus
  • 138
  • 2
  • 12
-2
votes
1 answer

python3 reversi game code

I have a 2 files for the reversi game for python 3. My first file is called reversi.py. It implements (a) the high level control of the game play (e.g., getting moves from the computer player and the human player, determining whether a player runs…
Romulus
  • 138
  • 2
  • 12
1
2