From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from tb-mx0.topicbox.com (localhost.local [127.0.0.1]) by tb-mx0.topicbox.com (Postfix) with ESMTP id 4FA9220011E9 for <9fans@9fans.net>; Sun, 5 Apr 2020 00:11:42 -0400 (EDT) (envelope-from kim.lassila@gmail.com) Received: from tb-mx0.topicbox.com (localhost [127.0.0.1]) by tb-mx0.topicbox.com (Authentication Milter) with ESMTP id E0C17A8E922; Sun, 5 Apr 2020 00:11:42 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1586059902; b=cYUR/QrOXgRVIlpxB7c7iq0tTsGKEpsIjJNOaISuBRUQa60Yao S3Xgd7SE7D69nLhUBfKHjVw864gSUbNiRN3VdMcvfRLJWl1qjBQzZGJWZt53J8m+ O4NBeOIH7z/EwNEI0JqBgRx+Mnn1hPHbDxg2BS/u421F+XpOy1/6h6GOnU0BVa8L AK6Vxsh4FG2U3KS4T0Et0LKotw615c2hsnuuzOieAvByhxgOa2qO++h+vClHYilq +nNgrQH0Vjy6y7mRDoFdrzZbHCHmVXnugNAchCmb9vw2defaEuMtpODktKxK99JY D8CG7X63FVTVBPxmx9fOcGCcwIN+np+5eoxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=from:content-type:mime-version:subject:date :references:to:in-reply-to:message-id; s=arcseal; t=1586059902; bh=TppHnu9qo6yFY257ddRPRS0Nzt+O+7KwgBChyvJ0tTE=; b=I1/c6Zm0XI5c f5oiZ/PJHCcv5ONJRRq92KZFRzYptJrGjzZt8i7ZRyGEFdotcFSkuQ0IgjvzE3Ky n2uKbc7Vxogph0Rdf4iGtOSqpMuarMxItwcNIGpyObzHlgMBoo4AZAPzZ6cuz4cY JGmuVRM3HARuZdxRwaz7E8TNLMR/Iby+fApTqaWXZGuSkx90aX8azEfzLVTOVvyz /QqJmTNImszGgkXthTI/Dmnji/JIsOuYfpB2ElF19y8lw8WWNx84usoojUl6hOBz ehgXniirDXxY9MiwuOSFAnLOO1fHRQFgM4argTCD4Yx6qVUwRFIHDH0AxJX6Okd8 b3xCtwvagA== ARC-Authentication-Results: i=1; tb-mx0.topicbox.com; arc=none (no signatures found); bimi=none (Domain is not BIMI enabled); dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=a2TchGA6 header.a=rsa-sha256 header.s=20161025 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; iprev=pass smtp.remote-ip=209.85.167.54 (mail-lf1-f54.google.com); spf=pass smtp.mailfrom=kim.lassila@gmail.com smtp.helo=mail-lf1-f54.google.com; x-aligned-from=pass (Address match); x-google-dkim=pass (2048-bit rsa key) header.d=1e100.net header.i=@1e100.net header.b=gSeDALrW; x-ptr=pass smtp.helo=mail-lf1-f54.google.com policy.ptr=mail-lf1-f54.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: alt2.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: alt2.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 Authentication-Results: tb-mx0.topicbox.com; arc=none (no signatures found); bimi=none (Domain is not BIMI enabled); dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=a2TchGA6 header.a=rsa-sha256 header.s=20161025 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; iprev=pass smtp.remote-ip=209.85.167.54 (mail-lf1-f54.google.com); spf=pass smtp.mailfrom=kim.lassila@gmail.com smtp.helo=mail-lf1-f54.google.com; x-aligned-from=pass (Address match); x-google-dkim=pass (2048-bit rsa key) header.d=1e100.net header.i=@1e100.net header.b=gSeDALrW; x-ptr=pass smtp.helo=mail-lf1-f54.google.com policy.ptr=mail-lf1-f54.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: alt2.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: alt2.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgeduhedrtdelgdekudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhephfgtggfuff hfvfgjkffosegrtdhmrehhtdejnecuhfhrohhmpefmihhmucfnrghsshhilhgruceokhhi mhdrlhgrshhsihhlrgesghhmrghilhdrtghomheqnecuffhomhgrihhnpegsihhtsghutg hkvghtrdhorhhgnecukfhppedvtdelrdekhedrudeijedrheegpdekkedrudelfedrvddv vddrkeegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvddtle drkeehrdduieejrdehgedphhgvlhhopehmrghilhdqlhhfuddqfhehgedrghhoohhglhgv rdgtohhmpdhmrghilhhfrhhomhepoehkihhmrdhlrghsshhilhgrsehgmhgrihhlrdgtoh hmqecuuffkkgfgpedufeelfeek X-ME-VSScore: 0 X-ME-VSCategory: clean Received-SPF: pass (gmail.com ... _spf.google.com: Sender is authorized to use 'kim.lassila@gmail.com' in 'mfrom' identity (mechanism 'include:_netblocks.google.com' matched)) receiver=tb-mx0.topicbox.com; identity=mailfrom; envelope-from="kim.lassila@gmail.com"; helo=mail-lf1-f54.google.com; client-ip=209.85.167.54 Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tb-mx0.topicbox.com (Postfix) with ESMTPS for <9fans@9fans.net>; Sun, 5 Apr 2020 00:11:41 -0400 (EDT) (envelope-from kim.lassila@gmail.com) Received: by mail-lf1-f54.google.com with SMTP id h6so9041017lfp.6 for <9fans@9fans.net>; Sat, 04 Apr 2020 21:11:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:date:references:to:in-reply-to:message-id; bh=TppHnu9qo6yFY257ddRPRS0Nzt+O+7KwgBChyvJ0tTE=; b=a2TchGA6NAHVoNZiUmcq++h5vMQ6XsHbXHsimNKYja4rTgomZHSStzI/TUJZxj73Gt Z3HI1Soh4eVdKPOyT/j+x2++kT5F/JbR6Yrnf+dE3p6en76VACFP7HQIKF9FSENIIXJM QOXa5XcWePR3inh1o1ikecs36jeUbpdqIL8rtp0EAesFu5HCm5E9xxX6Njlc6mlESX2w FCVtz18tUJE84wSUHU8MOdsYIsFktNOrCZtntHDbTcEOWilaREr+SH6VRaAkcJRWCGlC e+mfahd0nHX+vcELHcTOmqmPqAjjxOrPNbPrHUECWQO0c2RYO4kdVr4L8yeHe8G5y7AL NU9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:date:references:to :in-reply-to:message-id; bh=TppHnu9qo6yFY257ddRPRS0Nzt+O+7KwgBChyvJ0tTE=; b=gSeDALrWn8qs1bwCN8qX46oFR6Lwwls/MDwRk4wUBmQgNo0VHlBLl3HESPwwJmSKxr Bygsp/tnka3KwDBkq9uq4X7fjO2aTnY+faHrYrROM1jyDagIjJkF/jRn2WE/3EF1x3uU PkGCCMKy9BmMYRv28CasVPJBaYOi09v2DrxNiHJLlOnAqkML0oqbAl3hMqT6W9nc2Xjf gdM1VdwH0ZKf6fJ0nx20GteMcmqEGHbeKla3LIptX9ABVpQuutEMJ+pFDg21VT7BNmNf 0wRwqY29bIutTKPciye/4CHGMMJl+W5UGiijNWrWrkwvkTbcZvipRU5AZx1z5RUigehZ q5BA== X-Gm-Message-State: AGi0PuaSWVtupF0MbhxVMab/qrH/i1OaSJM0OkxKjqSawO+H6+VzcDXY 54j/W/62N1a3jeSvWuVOqzxsIqARqasTQw== X-Google-Smtp-Source: APiQypKU860j7ecwNnqguZ5Cl0ofrdZvkTLy7/7sKQGKpIrj7D/v8CnMwA1RrHVGLV3BmyJN56hbfw== X-Received: by 2002:ac2:5c52:: with SMTP id s18mr9535838lfp.7.1586059900424; Sat, 04 Apr 2020 21:11:40 -0700 (PDT) Received: from [192.168.0.104] (dsl-tkubng21-58c1de-84.dhcp.inet.fi. [88.193.222.84]) by smtp.gmail.com with ESMTPSA id u7sm9166918lfb.84.2020.04.04.21.11.39 for <9fans@9fans.net> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 Apr 2020 21:11:39 -0700 (PDT) From: Kim Lassila X-Google-Original-From: Kim Lassila Content-Type: multipart/alternative; boundary="Apple-Mail=_9BC64728-5E2B-4B60-9DBB-04CDE0480078" Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: [9fans] a simple graphical application in Go? Date: Sun, 5 Apr 2020 07:11:37 +0300 References: To: 9fans <9fans@9fans.net> In-Reply-To: Message-Id: X-Mailer: Apple Mail (2.3608.80.23.2.2) Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: 9122f078-76f3-11ea-bf08-9b863e51c077 --Apple-Mail=_9BC64728-5E2B-4B60-9DBB-04CDE0480078 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 On Apr 5, 2020, at 12:37 AM, Chris McGee wrote: >=20 > You can try this Go library by mischief and some examples in the cmd = package: > https://bitbucket.org/mischief/draw9/src/default/ = Thank you, thank you! Here is the Go version of black.c: package main import ( "bitbucket.org/mischief/draw9" "fmt" "image" "log" "time" ) func main() { disp, err :=3D draw9.InitDraw(nil, "", "black") if err !=3D nil { log.Fatal(err) } screen :=3D disp.ScreenImage rect :=3D screen.R black :=3D disp.Black screen.Draw(rect, black, nil, image.ZP) disp.Flush() time.Sleep(5 * time.Second) disp.Close() fmt.Println("rectangle was", rect) } One minor issue: the window is white after the program exits. Text = doesn=E2=80=99t show until I hit the up and down arrow keys. Kim= --Apple-Mail=_9BC64728-5E2B-4B60-9DBB-04CDE0480078 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 On = Apr 5, 2020, at 12:37 AM, Chris McGee <newton688@gmail.com>= wrote:

You = can try this Go library by mischief and some examples in the cmd = package:

Thank = you, thank you! Here is the Go version of black.c:

package main

import = (
"fmt"
"image"
"log"
"time"
)

func main() {
disp, err :=3D = draw9.InitDraw(nil, "", "black")
if err !=3D= nil {
= log.Fatal(err)
= }
screen :=3D= disp.ScreenImage
rect :=3D = screen.R
black :=3D = disp.Black
= screen.Draw(rect, black, nil, image.ZP)
disp.Flush()
time.Sleep(5 * = time.Second)
= disp.Close()
= fmt.Println("rectangle was", rect)
}

One = minor issue: the window is white after the program exits. Text doesn=E2=80= =99t show until I hit the up and down arrow keys.

Kim
= --Apple-Mail=_9BC64728-5E2B-4B60-9DBB-04CDE0480078--