From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: from cgl.ntg.nl (Cgl.ntg.nl [5.39.185.202]) by inbox.vuxu.org (Postfix) with ESMTP id 77F0A21438 for ; Sun, 7 Apr 2024 15:53:58 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 02D8E4841FF for ; Sun, 7 Apr 2024 15:52:33 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=fail (2048-bit key) reason="fail (message has been altered)" header.d=gmail.com Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id t1kB7kvq_4i7 for ; Sun, 7 Apr 2024 15:52:32 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id A2C8548403A for ; Sun, 7 Apr 2024 15:51:57 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 73211483CD4 for ; Sun, 7 Apr 2024 15:51:29 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0c-AlgsUL9cA for ; Sun, 7 Apr 2024 15:51:29 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.221.48; helo=mail-wr1-f48.google.com; envelope-from=mckaymeister@gmail.com; receiver= Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 0AA37483CC4 for ; Sun, 7 Apr 2024 15:51:28 +0200 (CEST) Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-344117bee49so1274243f8f.1 for ; Sun, 07 Apr 2024 06:51:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712497888; x=1713102688; darn=ntg.nl; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=Gd3B7EIukuSbfWVXbCPVJMcPGtvaj5eA4W1vrVJVmcI=; b=X0AzrAOCahYGnhwyy4EILPl2R9Dkx+LgN9BpSN2I2UapD45FgbMowrwpG1PyBUDISj B6j6ZIOqdtu6PYzvDFGxLsEKn60XYfSjRRD4u0hfr7XIgt5EB1WYdUstNhwYac+sPY61 wVXGsHURmJp8Kn/zkM8laGnH1JFq9ndzOJ0vfzc4CCQaA/zN2Y+F9rZtAeTNsfSVfVbH Jmx8fP30bwPNSJDKOK3iZCvov1FOYW087j60sojo2ocotoV1bvpkBMAKTTt33BmT25xF t3jhQ+b4RuqjqfTYEWhtN5VEjX03uUhGcvXZdWXWAggDb1yvsMbKQJ7AHYwOPLMUjqlu 3IXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712497888; x=1713102688; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Gd3B7EIukuSbfWVXbCPVJMcPGtvaj5eA4W1vrVJVmcI=; b=iaS8CByoNgckCukjOneWaiK+27PFsVoAfwzmYaGFbgLhxO2BOngy9y09ixsIpZHvrc ePOr1WjAGsiisHbHwNW1y1L+2MdIXE/dB6izMDstUmvl3QTZ0IJmBwXTpNy5oO9HuP9D mcss9xuR3ZBkyH7kpRQXh3fbeIf9AgiPTl5fN0TQ5GA9TRnG368YvvsCYjYXMqz/byfm tYOUtrc+KgR5WLSnG72W/lowR5xBtSd8ifnx4GQmJQtGyTWyq5050yCTuKNHetdNh4X+ l3j0m8W+kuAKXb6At9cAyp8zGP9d5CnQSaA9/PB4WZlthGAuUVMCN3Ks7/3/BkAXCpKl W4nA== X-Gm-Message-State: AOJu0YyF06dKjHv3WS6wO6Uk4jYpfU80i0YmvhuHA83sT2t+0v50OIQ9 tsJyHS6yoYu+Z4XDVcAyVJtG6L/BHG5GDrSuJfIkIu4PuIn0s0mqlFgqn+5p X-Google-Smtp-Source: AGHT+IENgIH5Nwlwr7mHF8V3y0j/XxRWffm79PryY+EIvcJwt8sDjtTjI+2KqyDPNC3P81MUDjl0Uw== X-Received: by 2002:a05:6000:18a1:b0:343:c2c1:f4b1 with SMTP id b1-20020a05600018a100b00343c2c1f4b1mr7640260wri.4.1712497887543; Sun, 07 Apr 2024 06:51:27 -0700 (PDT) Received: from ?IPV6:2a00:23c7:bb5f:f401:3564:46b4:b65f:3c9a? ([2a00:23c7:bb5f:f401:3564:46b4:b65f:3c9a]) by smtp.gmail.com with ESMTPSA id o16-20020a056000011000b00343b252b096sm6685896wrx.23.2024.04.07.06.51.27 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 07 Apr 2024 06:51:27 -0700 (PDT) Message-ID: <7cae2f83-dfe0-45f9-81f8-c8e8819c2e04@gmail.com> Date: Sun, 7 Apr 2024 14:51:26 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: ntg-context@ntg.nl References: <171248693023.3369328.13802605738652711411@cgl.ntg.nl> Content-Language: en-GB From: Keith McKay In-Reply-To: <171248693023.3369328.13802605738652711411@cgl.ntg.nl> Message-ID-Hash: A6U25K6JCUHZASRGQ4TYRWWXQXXMRS7N X-Message-ID-Hash: A6U25K6JCUHZASRGQ4TYRWWXQXXMRS7N X-MailFrom: mckaymeister@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: how to apply gradient color to a piece of text? List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii"; format="flowed" Content-Transfer-Encoding: 7bit Have a look at the posts starting on the 2 March 2021 with the subject heading "Shaded Large Letters in LMTX". Hans gave a great solution. Best Wishes Keith On 07/04/2024 11:48, seyal.zavira@gmail.com wrote: > hi all, > > when i look at luametafun manual there are some intresting examples that can apply gradient colors to metapost paths. > how i can apply this cool feature to a piece of text? > > i tried the code below but it does not produce any result. > > \definecolor[Gleft] [h=9f9393] > \definecolor[Gright] [h=ff1aa4] > \startMPpage > picture Mytext; > Mytext := btex hello etex; > > draw lmt_shade [ > picture="Mytext", > direction = "right", > domain= { 0, 2 }, > colors= { "headerGleft", "headerGright" }, > ] ; > \stopMPpage > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to the Wiki! > > maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > ___________________________________________________________________________________ ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________